- 06 Ara, 2005 2 kayıt (commit)
-
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
- 13 Kas, 2005 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 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.
-
- 04 Şub, 2005 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
If we exit via the break here, we need to set ff_last_lineno or FUTURE_POSSIBLE() will remain true. The bug affected statements containing a variety of expressions, but not all expressions. It has been present since Python 2.2.
-
- 31 Agu, 2004 1 kayıt (commit)
-
-
Anthony Baxter yazdı
"from blah import (foo, bar baz, bongo)"
-
- 11 Ara, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 12 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 20 Agu, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Check return value from future_parse() in for loop for file_input to accomodate multiple future statements on separate lines. Add several comments explaining how the code works. Remove out-dated XXX comment.
-
- 10 Agu, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Replace uses of PyCF_xxx with CO_xxx. Replace individual feature slots in PyFutureFeatures with single bitmask ff_features. When flags must be transfered among the three parts of the interpreter that care about them -- the pythonrun layer, the compiler, and the future feature parser -- can simply or (|) the definitions.
-
- 08 Agu, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This introduces: - A new operator // that means floor division (the kind of division where 1/2 is 0). - The "future division" statement ("from __future__ import division) which changes the meaning of the / operator to implement "true division" (where 1/2 is 0.5). - New overloadable operators __truediv__ and __floordiv__. - New slots in the PyNumberMethods struct for true and floor division, new abstract APIs for them, new opcodes, and so on. I emphasize that without the future division statement, the semantics of / will remain unchanged until Python 3.0. Not yet implemented are warnings (default off) when / is used with int or long arguments. This has been on display since 7/31 as SF patch #443474. Flames to /dev/null.
-
- 16 Tem, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
pythonrun.c, run_pyc_file(): repair semantic error wrt CO_GENERATOR vs CO_GENERATOR_ALLOWED.
-
Tim Peters yazdı
that info to code dynamically compiled *by* code compiled with generators enabled. Doesn't yet work because there's still no way to tell the parser that "yield" is OK (unlike nested_scopes, the parser has its fingers in this too). Replaced PyEval_GetNestedScopes by a more-general PyEval_MergeCompilerFlags. Perhaps I should not have? I doubted it was *intended* to be part of the public API, so just did.
-
- 15 Tem, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
the yield statement. I figure we have to have this in before I can release 2.2a1 on Wednesday. Note: test_generators is currently broken, I'm counting on Tim to fix this.
-
- 10 Mar, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
commas in the concrete syntax; checking those causes a segfault. This fixes SF bug #407394.
-
- 28 Şub, 2001 3 kayıt (commit)
-
-
Jeremy Hylton yazdı
for errors raised in future.c. Move some helper functions from compile.c to errors.c and make them API functions: PyErr_SyntaxLocation() and PyErr_ProgramText().
-
Jeremy Hylton yazdı
are legal at the interactive interpreter prompt. They don't do anything yet...
-
Jeremy Hylton yazdı
XXX still need to integrate into symtable API compile.h: Remove ff_n_simple_stmt; obsolete. Add ff_found_docstring used internally to skip one and only one string at the beginning of a module. compile.c: Add check for from __future__ imports to far into the file. In symtable_global() check for -1 returned from symtable_lookup(), which signifies name not defined. Add missing DECERF in symtable_add_def. Free c->c_future. future.c: Add special handling for multiple statements joined on a single line using one or more semicolons; this form can include an illegal future statement that would otherwise be hard to detect. Add support for detecting and skipping doc strings.
-
- 27 Şub, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Makefile.pre.in: add target future.o Include/compile.h: define PyFutureFeaters and PyNode_Future() add c_future slot to struct compiling Include/symtable.h: add st_future slot to struct symtable Python/future.c: implementation of PyNode_Future() Python/compile.c: use PyNode_Future() for nested_scopes support Python/symtable.c: include compile.h to pick up PyFutureFeatures decl
-