Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 <> | ||||
* | Fix Coverity #158: Check the correct variable. | Neal Norwitz | 2007-10-05 | 1 | -1/+1 |
| | |||||
* | Place #ifdef Py_USING_UNICODE around decode_unicode(). | Georg Brandl | 2007-08-06 | 1 | -0/+2 |
| | |||||
* | SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors. | Guido van Rossum | 2007-07-18 | 1 | -2/+19 |
| | | | | (Slightly tweaked for style and refcounts.) | ||||
* | Disallow function calls like foo(None=1). | Georg Brandl | 2007-06-07 | 1 | -0/+4 |
| | | | | Backport from py3k rev. 55708 by Guido. | ||||
* | Backport PEP 3110's new 'except' syntax to 2.6. | Collin Winter | 2007-05-18 | 1 | -1/+1 |
| | |||||
* | Handle a couple of uncaught errors. This should be backported | Neal Norwitz | 2007-05-03 | 1 | -0/+4 |
| | |||||
* | Actually raise an exception before calling ast_error_finish. | Georg Brandl | 2007-05-02 | 1 | -0/+2 |
| | | | | Triggers an assertion otherwise. | ||||
* | Clean up formatting of this file. | Jeremy Hylton | 2007-03-16 | 1 | -2029/+2048 |
| | | | | | | | | | | The file should now follow PEP 7, except that it uses 4 space indents (in the style of Py3k). This particular code would be really hard to read with the regular tab idents. Other changes: - reflow long lines - change multi-line conditionals to have test at end of line | ||||
* | Patch #1642547: Fix an error/crash when encountering syntax errors in ↵ | Collin Winter | 2007-03-16 | 1 | -14/+26 |
| | | | | | | complex if statements. Will backport. | ||||
* | tabify | Jeremy Hylton | 2007-02-27 | 1 | -2005/+2005 |
| | | | | | Note that ast.c still has a mix of tabs and spaces, because it attempts to use four-space indents for more of the new code. | ||||
* | Bug #1588287: fix invalid assertion for `1,2` in debug builds. | Neal Norwitz | 2006-11-04 | 1 | -0/+1 |
| | | | | Will backport | ||||
* | Bug #1557232: fix seg fault with def f((((x)))) and def f(((x),)). | Neal Norwitz | 2006-09-22 | 1 | -2/+24 |
| | | | | | | | These tests should be improved. Hopefully this fixes variations when flipping back and forth between fpdef and fplist. Backport candidate. | ||||
* | with and as are now keywords. There are some generated files I can't recreate. | Neal Norwitz | 2006-09-06 | 1 | -12/+0 |
| | |||||
* | M-x untabify | Neal Norwitz | 2006-09-05 | 1 | -821/+821 |
| | |||||
* | Add a comment about some refactoring. (There's probably more that should be ↵ | Neal Norwitz | 2006-09-05 | 1 | -6/+5 |
| | | | | done.) I will reformat this file in the next checkin due to the inconsistent tabs/spaces. | ||||
* | Bug #1520864 (again): unpacking singleton tuples in list comprehensions and | Neal Norwitz | 2006-09-05 | 1 | -4/+12 |
| | | | | | | | | | | | | | generator expressions (x for x, in ... ) works again. Sigh, I only fixed for loops the first time, not list comps and genexprs too. I couldn't find any more unpacking cases where there is a similar bug lurking. This code should be refactored to eliminate the duplication. I'm sure the listcomp/genexpr code can be refactored. I'm not sure if the for loop can re-use any of the same code though. Will backport to 2.5 (the only place it matters). | ||||
* | Klocwork made another run and found a bunch more problems. | Neal Norwitz | 2006-08-12 | 1 | -0/+2 |
| | | | | | | | This is the first batch of fixes that should be easy to verify based on context. This fixes problem numbers: 220 (ast), 323-324 (symtable), 321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree). | ||||
* | Add some asserts and update comments | Neal Norwitz | 2006-07-30 | 1 | -2/+3 |
| | |||||
* | Patch #1531113: Fix augmented assignment with yield expressions. | Neal Norwitz | 2006-07-30 | 1 | -7/+9 |
| | | | | Also fix a SystemError when trying to assign to yield expressions. | ||||
* | Handle more memory allocation failures without crashing. | Neal Norwitz | 2006-07-21 | 1 | -2/+4 |
| | |||||
* | Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again. | Neal Norwitz | 2006-07-12 | 1 | -2/+6 |
| | |||||
* | Fix SF bug 1441486: bad unary minus folding in compiler. | Neil Schemenauer | 2006-07-09 | 1 | -20/+53 |
| |