- 19 Agu, 2008 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 23 Şub, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
with some help from Georg
-
- 18 May, 2007 1 kayıt (commit)
-
-
Collin Winter yazdı
-
- 06 Eyl, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 25 May, 2006 1 kayıt (commit)
-
-
Thomas Wouters yazdı
-
- 12 Nis, 2006 2 kayıt (commit)
-
-
Anthony Baxter yazdı
-
Thomas Wouters yazdı
[x for x in it if x if x], were broken for no good reason by the PEP 308 patch.
-
- 28 Şub, 2006 2 kayıt (commit)
-
-
Thomas Wouters yazdı
actually necessary for functionality, but good for transition.
-
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.
-
- 27 Şub, 2006 2 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).
-
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 ;)
-
- 24 Şub, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
['(' gen_for ')'] is redundant with test, so remove it.
-
- 18 Ara, 2005 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 17 Ara, 2005 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Modified since ast-arenas was implemented.
-
- 30 Eki, 2005 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
properties now.
-
- 21 Eki, 2005 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Incorrect code was generated for: foo(a = i for i in range(10)) This should have generated a SyntaxError. Fix the Grammar so it raises a SyntaxError and test it. I'm uncertain whether this should be backported. It makes something that was Syntactically valid invalid. However, the code would either be completely broken or do the wrong thing.
-
- 02 Agu, 2005 1 kayıt (commit)
-
-
Phillip J. Eby yazdı
method still needs to support string exceptions, and allow None for the third argument. Documentation updates are needed, too.
-
- 05 Mar, 2005 1 kayıt (commit)
-
-
Brett Cannon yazdı
``class C(): pass`` is no longer a syntax error.
-
- 31 Agu, 2004 1 kayıt (commit)
-
-
Anthony Baxter yazdı
"from blah import (foo, bar baz, bongo)"
-
- 17 Agu, 2004 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 1009560 ] Fix @decorator evaluation order From the description: Changes in this patch: - Change Grammar/Grammar to require newlines between adjacent decorators. - Fix order of evaluation of decorators in the C (compile.c) and python (Lib/compiler/pycodegen.py) compilers - Add better order of evaluation check to test_decorators.py (test_eval_order) - Update the decorator documentation in the reference manual (improve description of evaluation order and update syntax description) and the comment: Used Brett's evaluation order (see http://mail.python.org/pipermail/python-dev/2004-August/047835.html) (I'm checking this in for Anthony who was having problems getting SF to talk to him)
-
- 02 Agu, 2004 1 kayıt (commit)
-
-
Anthony Baxter yazdı
"@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
-
- 19 May, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
(Code contributed by Jiwon Seo.) The documentation portion of the patch is being re-worked and will be checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's rationale for the design decisions on binding behavior (as described in in his patch comments and in discussions on python-dev). The test file, test_genexps.py, is written in doctest format and is meant to exercise all aspects of the the patch. Further additions are welcome from everyone. Please stress test this new feature as much as possible before the alpha release.
-
- 04 Agu, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 24 May, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
The old syntax suggested that a trailing comma was OK inside backticks, but in fact (due to ideosyncrasies of pgen) it was not. Fix the grammar to avoid the ambiguity. Fred: you may want to update the refman.
-
- 23 May, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
"power" was formally ambiguous. Here's his fix.
-
- 15 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
"for <var> in <testlist> may no longer be a single test followed by a comma. This solves SF bug #431886. Note that if the testlist contains more than one test, a trailing comma is still allowed, for maximum backward compatibility; but this example is not: [(x, y) for x in range(10), for y in range(10)] ^ The fix involved creating a new nonterminal 'testlist_safe' whose definition doesn't allow the trailing comma if there's only one test: testlist_safe: test [(',' test)+ [',']]
-
- 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.
-
- 18 Haz, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Bugfix candidate in inspect.py: it was referencing "self" outside of a method.
-
- 27 Şub, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 03 Şub, 2001 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
- 28 Eyl, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
-
- 24 Agu, 2000 1 kayıt (commit)
-
-
Thomas Wouters yazdı
Michael Hudson, and support in general for the augmented assignment syntax. The graminit.c patch is large!
-
- 23 Agu, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
changes to this file.
-
- 22 Agu, 2000 1 kayıt (commit)
-
-
Skip Montanaro yazdı
-
- 21 Agu, 2000 2 kayıt (commit)
-
-
Barry Warsaw yazdı
This change modifies Python's grammar to include the extended print form.
-
Thomas Wouters yazdı
-
- 17 Agu, 2000 2 kayıt (commit)
-
-
Thomas Wouters yazdı
name as n'. By doing some twists and turns, "as" is not a reserved word. There is a slight change in semantics for 'from module import name' (it will now honour the 'global' keyword) but only in cases that are explicitly undocumented.
-
Sjoerd Mullender yazdı
directory.
-
- 16 Agu, 2000 1 kayıt (commit)
-
-
Trent Mick yazdı
This closes patch: http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=101176&group_id=5470
-
- 12 Agu, 2000 1 kayıt (commit)