Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #2333: Backport set and dict comprehensions syntax. | Alexandre Vassalotti | 2010-01-11 | 1 | -86/+149 |
| | |||||
* | Issue #2335: Backport set literals syntax from Python 3.x. | Alexandre Vassalotti | 2010-01-09 | 1 | -21/+44 |
| | |||||
* | improve several corner cases related with argument names in parenthesis | Benjamin Peterson | 2009-11-19 | 1 | -1/+16 |
| | | | | | | | | | - Fix #7362: give a good error message for parenthesized arguments with defaults. - Add a py3k warning for any parenthesized arguments since those are not allowed in Py3. This warning is not given in tuple unpacking, since that incurs the tuple unpacking warning. | ||||
* | do a backport of r75928 | Benjamin Peterson | 2009-10-29 | 1 | -9/+12 |
| | | | | | The added test does not fail without the patch, but we still fix the issue of surrogates being used in wide builds where they should not be. | ||||
* | Removed PyOS_ascii_atof from ast.c, as mentioned in issue 7117. | Eric Smith | 2009-10-27 | 1 | -6/+6 |
| | |||||
* | #7050 fix a SystemError when using tuple unpacking and augmented assignment | Benjamin Peterson | 2009-10-03 | 1 | -0/+13 |
| | |||||
* | better col_offsets for "for" statements with tuple unpacking #6704 | Benjamin Peterson | 2009-08-15 | 1 | -11/+12 |
| | | | | Patch from Frank Wierzbicki. | ||||
* | the Slice in x[::] has to have step as None to help the interpreter | Benjamin Peterson | 2009-07-20 | 1 | -1/+15 |
| | |||||
* | when no module is given in a 'from' relative import, make ImportFrom.module NULL | Benjamin Peterson | 2009-06-13 | 1 | -3/+1 |
| | |||||
* | give a better error message when deleting () | Benjamin Peterson | 2009-06-13 | 1 | -4/+7 |
| | |||||
* | set Print.values to NULL if there are no values | Benjamin Peterson | 2009-06-13 | 1 | -9/+12 |
| | |||||
* | allow importing from a module named None if it has an 'as' clause | Benjamin Peterson | 2009-06-13 | 1 | -4/+6 |
| | |||||
* | prevent import statements from assigning to None | Benjamin Peterson | 2009-06-13 | 1 | -11/+26 |
| | |||||
* | keep the slice.step field as NULL if no step expression is given | Benjamin Peterson | 2009-06-13 | 1 | -8/+1 |
| | |||||
* | remove check for case handled in sub-function | Benjamin Peterson | 2009-06-11 | 1 | -3/+0 |
| | |||||
* | revert r73361 | Benjamin Peterson | 2009-06-11 | 1 | -0/+4 |
| | |||||
* | remove duplicate check | Benjamin Peterson | 2009-06-11 | 1 | -4/+0 |
| | |||||
* | remove error checks already done in set_context() | Benjamin Peterson | 2009-06-08 | 1 | -25/+0 |
| | |||||
* | remove useless assertion | Benjamin Peterson | 2009-06-08 | 1 | -1/+0 |
| | |||||
* | Allow multiple context managers in one with statement, as proposed | Georg Brandl | 2009-05-25 | 1 | -20/+41 |
| | | | | | | | in http://codereview.appspot.com/53094 and accepted by Guido. The construct is transformed into multiple With AST nodes so that there should be no problems with the semantics. | ||||
* | #4077: No need to append \n when calling Py_FatalError | Amaury Forgeot d'Arc | 2009-01-17 | 1 | -1/+1 |
| | | | | + fix a declaration to make it match the one in pythonrun.h | ||||
* | Issue #4461: Safety check in parsenumber (ast.c) | Mark Dickinson | 2008-12-05 | 1 | -0/+1 |
| | |||||
* | always check the return value of NEW_IDENTIFIER | Benjamin Peterson | 2008-11-25 | 1 | -20/+59 |
| | |||||
* | don't segfault when \N escapes are used and unicodedata fails to load | Benjamin Peterson | 2008-11-21 | 1 | -1/+2 |
| | | | | Fixes #4367 | ||||
* | check for assignment to __debug__ during AST generation | Benjamin Peterson | 2008-11-08 | 1 | -1/+3 |
| | | | | Also, give assignment to None a better error message | ||||
* | give a py3k warning when 'nonlocal' is used as a variable name | Benjamin Peterson | 2008-10-25 | 1 | -3/+8 |
| | |||||
* | allow keyword args to be passed in after *args #3473 | Benjamin Peterson | 2008-08-19 | 1 | -0/+5 |
| | |||||
* | Issue #3360: Fix incorrect parsing of "020000000000.0". | Mark Dickinson | 2008-07-16 | 1 | -10/+1 |
| | |||||
* | #3219 repeated keyword arguments aren't allowed in function calls anymore | Benjamin Peterson | 2008-07-01 | 1 | -0/+10 |
| | |||||
* | Merge in release25-maint r60793: | Gregory P. Smith | 2008-06-11 | 1 | -0/+3 |
| | | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. | ||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -14/+14 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | warn about parameter tuple unpacking | Benjamin Peterson | 2008-06-08 | 1 | -0/+3 |
| | |||||
* | Warn about assigning to Py3k keywords (True and False) | Benjamin Peterson | 2008-06-08 | 1 | -33/+27 |
| | |||||
* | add an ast_warn helper function to make adding those Py3k warnings easier | Benjamin Peterson | 2008-06-08 | 1 | -7/+15 |
| | |||||
* | change Py3k backquote warning to a SyntaxWarning and add a test | Benjamin Peterson | 2008-06-08 | 1 | -1/+1 |
| | |||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -18/+18 |
| | |||||
* | The compiling struct is now passed around to all AST helpers (see issue 2720) | Benjamin Peterson | 2008-05-03 | 1 | -32/+32 |
| | |||||
* | Patch #2511: Give the "excepthandler" AST item proper attributes by making ↵ | Georg Brandl | 2008-03-30 | 1 | -3/+3 |
| | | | | it a Sum. | ||||
* | Patch #2477: Added from __future__ import unicode_literals | Christian Heimes | 2008-03-26 | 1 | -11/+14 |
| | | | | The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings. | ||||
* | Make Py3k warnings consistent w.r.t. punctuation; also respect the | Georg Brandl | 2008-03-25 | 1 | -1/+1 |
| | | | | EOL 80 limit and supply more alternatives in warning messages. | ||||
* | Issue #2400: Allow relative imports to "import *". | Martin v. Löwis | 2008-03-19 | 1 | -4/+0 |
| | |||||
* | Issue#2238: some syntax errors from *args or **kwargs expressions | Amaury Forgeot d'Arc | 2008-03-05 | 1 | -0/+4 |
| | | | | | | | | | | | | | | would give bogus error messages, because of untested exceptions:: >>> f(**g(1=2)) XXX undetected error Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'int' object is not iterable instead of the expected SyntaxError: keyword can't be an expression Will backport. | ||||
* | Patch #1759: Backport of PEP 3129 class decorators | Christian Heimes | 2008-02-23 | 1 | -24/+46 |
| | | | | with some help from Georg | ||||
* | Added bytes and b'' as aliases for str and '' | Christian Heimes | 2008-01-18 | 1 | -0/+3 |
| | |||||
* | Make Python compile with --disable-unicode. | Georg Brandl | 2008-01-07 | 1 | -0/+2 |
| | |||||
* | Added filename to compiling struct based on Martin's suggestion. | Christian Heimes | 2007-11-24 | 1 | -1/+3 |
| | | | | I'm wonder why I was trying to add the filename to the node all the time. The compiling struct is more obvious. | ||||
* | And yet another fix for the patch. Paul Moore has send me a note that I've ↵ | Christian Heimes | 2007-11-23 | 1 | -8/+9 |
| | | | | missed a declaration. The additional code has moved the declaration in the middle of the block. | ||||
* | How did the comment get there? | Christian Heimes | 2007-11-23 | 1 | -1/+1 |
| | |||||
* | Fixed problems in the last commit. Filenames and line numbers weren't ↵ | Christian Heimes | 2007-11-23 | 1 | -4/+8 |
| | | | | | | reported correctly. Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name. | ||||
* | Applied patch #1754273 and #1754271 from Thomas Glee | Christian Heimes | 2007-11-23 | 1 | -0/+4 |
| | | | | The patches are adding deprecation warnings for back ticks and <> |