- 26 Şub, 2007 1 kayıt (commit)
-
-
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
-
- 12 Şub, 2007 1 kayıt (commit)
-
-
Brett Cannon yazdı
is specified at the top of the file. Also add a note that Python/Python-ast.c needs to be committed separately after a change to the AST grammar to capture the revision number of the change (which is what __version__ is set to).
-
- 11 Şub, 2007 1 kayıt (commit)
-
-
Brett Cannon yazdı
r53731).
-
- 13 Nis, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 11 Nis, 2006 3 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
Explicitly cast void* to int to cmpop_ty.
-
Anthony Baxter yazdı
in Python/Python-ast.c. Not sure what to do about those.
-
- 07 Nis, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 04 Nis, 2006 1 kayıt (commit)
-
-
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.
-
- 03 Nis, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
* Cleanup formatting a bit (add spaces). * Move static var initialized inside init_types() since that's the only place it's used.
-
- 02 Mar, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 01 Mar, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 28 Şub, 2006 4 kayıt (commit)
-
-
Neal Norwitz yazdı
-
Thomas Wouters yazdı
Neal.
-
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.
-
Martin v. Löwis yazdı
-
- 27 Şub, 2006 4 kayıt (commit)
-
-
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).
-
Martin v. Löwis yazdı
Cleanup Python-ast.c generation.
-
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 ;)
-
Martin v. Löwis yazdı
-
- 26 Şub, 2006 3 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
a tree of Python objects. Expose this through compile().
-
- 02 Ock, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 17 Ara, 2005 1 kayıt (commit)
-
-
Neal Norwitz yazdı
simplifies a lot of error handling code, and fixes many memory leaks.
-
- 11 Ara, 2005 1 kayıt (commit)
-
-
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.
-
- 13 Kas, 2005 2 kayıt (commit)
-
-
Neal Norwitz yazdı
a bunch of names
-
Neal Norwitz yazdı
-
- 23 Eki, 2005 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Get rid of "int i" unused warnings from Python-ast.c which we are generating.
-
- 20 Eki, 2005 1 kayıt (commit)
-
-
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.
-