1. 26 Şub, 2007 1 kayıt (commit)
    • Neal Norwitz's avatar
      Fix a couple of problems in generating the AST code: · 7b7d1c82
      Neal Norwitz yazdı
       * use %r instead of backticks since backticks are going away in Py3k
       * PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again
       * the signature for ast2obj_int incorrectly used a bool, rather than a long
      7b7d1c82
  2. 12 Şub, 2007 1 kayıt (commit)
  3. 11 Şub, 2007 1 kayıt (commit)
  4. 13 Nis, 2006 1 kayıt (commit)
  5. 11 Nis, 2006 3 kayıt (commit)
  6. 07 Nis, 2006 1 kayıt (commit)
  7. 04 Nis, 2006 1 kayıt (commit)
    • 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
  8. 03 Nis, 2006 1 kayıt (commit)
  9. 02 Mar, 2006 1 kayıt (commit)
  10. 01 Mar, 2006 1 kayıt (commit)
  11. 28 Şub, 2006 4 kayıt (commit)
    • Neal Norwitz's avatar
    • Thomas Wouters's avatar
    • Thomas Wouters's avatar
      SF patch #1438387, PEP 328: relative and absolute imports. · f7f438ba
      Thomas Wouters yazdı
       - IMPORT_NAME takes an extra argument from the stack: the relativeness of
         the import. Only passed to __import__ when it's not -1.
      
       - __import__() takes an optional 5th argument for the same thing; it
         __defaults to -1 (old semantics: try relative, then absolute)
      
       - 'from . import name' imports name (be it module or regular attribute)
         from the current module's *package*. Likewise, 'from .module import name'
         will import name from a sibling to the current module.
      
       - Importing from outside a package is not allowed; 'from . import sys' in a
         toplevel module will not work, nor will 'from .. import sys' in a
         (single-level) package.
      
       - 'from __future__ import absolute_import' will turn on the new semantics
         for import and from-import: imports will be absolute, except for
         from-import with dots.
      
      Includes tests for regular imports and importhooks, parser changes and a
      NEWS item, but no compiler-package changes or documentation changes.
      f7f438ba
    • Martin v. Löwis's avatar
      Regenerate. · ace990cf
      Martin v. Löwis yazdı
      ace990cf
  12. 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
  13. 26 Şub, 2006 3 kayıt (commit)
  14. 02 Ock, 2006 1 kayıt (commit)
  15. 17 Ara, 2005 1 kayıt (commit)
  16. 11 Ara, 2005 1 kayıt (commit)
    • Neal Norwitz's avatar
      SF #1373150, diffs in working copy after a build · 897ff817
      Neal Norwitz yazdı
      Strip off leading dots and slash so the generated files are the same regardless
      of whether you configure in the checkout directory or build.
      
      If anyone configures in a different directory, we might want a cleaner
      approach using os.path.*().  Hopefully this is good enough.
      897ff817
  17. 13 Kas, 2005 2 kayıt (commit)
  18. 23 Eki, 2005 1 kayıt (commit)
  19. 20 Eki, 2005 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Merge ast-branch to head · 3e0055f8
      Jeremy Hylton yazdı
      This change implements a new bytecode compiler, based on a
      transformation of the parse tree to an abstract syntax defined in
      Parser/Python.asdl.
      
      The compiler implementation is not complete, but it is in stable
      enough shape to run the entire test suite excepting two disabled
      tests.
      3e0055f8