1. 13 Agu, 2006 1 kayıt (commit)
  2. 12 Agu, 2006 1 kayıt (commit)
  3. 12 Haz, 2006 1 kayıt (commit)
  4. 06 Haz, 2006 1 kayıt (commit)
  5. 02 Haz, 2006 1 kayıt (commit)
    • Neal Norwitz's avatar
      Patch #1357836: · d21a7fff
      Neal Norwitz yazdı
      Prevent an invalid memory read from test_coding in case the done flag is set.
      In that case, the loop isn't entered.  I wonder if rather than setting
      the done flag in the cases before the loop, if they should just exit early.
      
      This code looks like it should be refactored.
      
      Backport candidate (also the early break above if decoding_fgets fails)
      d21a7fff
  6. 04 May, 2006 1 kayıt (commit)
  7. 18 Nis, 2006 1 kayıt (commit)
  8. 14 Nis, 2006 1 kayıt (commit)
  9. 13 Nis, 2006 1 kayıt (commit)
  10. 11 Nis, 2006 4 kayıt (commit)
  11. 10 Nis, 2006 1 kayıt (commit)
  12. 04 Nis, 2006 2 kayıt (commit)
    • Jeremy Hylton's avatar
      76c21bdb
    • Jeremy Hylton's avatar
      Add lineno, col_offset to excephandler to enable future fix for · 2f327c14
      Jeremy Hylton yazdı
      tracing/line number table in except blocks.
      
      Reflow long lines introduced by col_offset changes.  Update test_ast
      to handle new fields in excepthandler.
      
      As note in Python.asdl says, we might want to rethink how attributes
      are handled.  Perhaps they should be the same as other fields, with
      the primary difference being how they are defined for all types within
      a sum.
      
      Also fix asdl_c so that constructors with int fields don't fail when
      passed a zero value.
      2f327c14
  13. 03 Nis, 2006 1 kayıt (commit)
  14. 26 Mar, 2006 1 kayıt (commit)
    • Tim Peters's avatar
      Years in the making. · c9d78aa4
      Tim Peters yazdı
      objimpl.h, pymem.h:  Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE}
      to PyObject_{Free, FREE} in a release build.  They're aliases for the
      system free() now.
      
      _subprocess.c/sp_handle_dealloc():  Since the memory was originally
      obtained via PyObject_NEW, it must be released via PyObject_FREE (or
      _DEL).
      
      pythonrun.c, tokenizer.c, parsermodule.c:  I lost count of the number of
      PyObject vs PyMem mismatches in these -- it's like the specific
      function called at each site was picked at random, sometimes even with
      memory obtained via PyMem getting released via PyObject.  Changed most
      to use PyObject uniformly, since the blobs allocated are predictably
      small in most cases, and obmalloc is generally faster than system
      mallocs then.
      
      If extension modules in real life prove as sloppy as Python's front
      end, we'll have to revert the objimpl.h + pymem.h part of this patch.
      Note that no problems will show up in a debug build (all calls still go
      thru obmalloc then). Problems will show up only in a release build, most
      likely segfaults.
      c9d78aa4
  15. 20 Mar, 2006 1 kayıt (commit)
  16. 07 Mar, 2006 1 kayıt (commit)
  17. 02 Mar, 2006 2 kayıt (commit)
    • Thomas Wouters's avatar
      Fix crashing bug in tokenizer, when tokenizing files with non-ASCII bytes · 7eaf2aaf
      Thomas Wouters yazdı
      but without a specified encoding: decoding_fgets() (and decoding_feof()) can
      return NULL and fiddle with the 'tok' struct, making tok->buf NULL. This is
      okay in the other cases of calls to decoding_*(), it seems, but not in this
      one.
      
      This should get a test added, somewhere, but the testsuite doesn't seem to
      test encoding anywhere (although plenty of tests use it.)
      
      It seems to me that decoding errors in other places in the code (like at the
      start of a token, instead of in the middle of one) make the code end up
      adding small integers to NULL pointers, but happen to check for error states
      before using the calculated new pointers. I haven't been able to trigger any
      other crashes, in any case.
      
      I would nominate this file for a comlete rewrite for Py3k. The whole
      decoding trick is too bolted-on for my tastes.
      7eaf2aaf
    • Martin v. Löwis's avatar
      Fix memory leak on attributes. · 03e5bc02
      Martin v. Löwis yazdı
      03e5bc02
  18. 01 Mar, 2006 2 kayıt (commit)
  19. 28 Şub, 2006 9 kayıt (commit)
  20. 27 Şub, 2006 4 kayıt (commit)
    • Guido van Rossum's avatar
      PEP 343 -- the with-statement. · c2e20744
      Guido van Rossum yazdı
      This was started by Mike Bland and completed by Guido
      (with help from Neal).
      
      This still needs a __future__ statement added;
      Thomas is working on Michael's patch for that aspect.
      
      There's a small amount of code cleanup and refactoring
      in ast.c, compile.c and ceval.c (I fixed the lltrace
      behavior when EXT_POP is used -- however I had to make
      lltrace a static global).
      c2e20744
    • Martin v. Löwis's avatar
      Create _ast module. · 577b5b96
      Martin v. Löwis yazdı
      Cleanup Python-ast.c generation.
      577b5b96
    • Thomas Wouters's avatar
      PEP 308 implementation, including minor refdocs and some testcases. It · dca3b9c7
      Thomas Wouters yazdı
      breaks the parser module, because it adds the if/else construct as well as
      two new grammar rules for backward compatibility. If no one else fixes
      parsermodule, I guess I'll go ahead and fix it later this week.
      
      The TeX code was checked with texcheck.py, but not rendered. There is
      actually a slight incompatibility:
      
      >>> (x for x in lambda:0)
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      TypeError: iteration over non-sequence
      
      changes into
      
      >>> (x for x in lambda: 0)
        File "<stdin>", line 1
          (x for x in lambda: 0)
                           ^
      SyntaxError: invalid syntax
      
      Since there's no way the former version can be useful, it's probably a
      bugfix ;)
      dca3b9c7
    • Martin v. Löwis's avatar
      d3a5f53a
  21. 26 Şub, 2006 3 kayıt (commit)