Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | update asdl_c.py from r66377 | Benjamin Peterson | 2008-09-10 | 1 | -1/+1 |
| | |||||
* | #3367: revert rev. 65539: this change causes test_parser to fail | Andrew M. Kuchling | 2008-08-05 | 1 | -1/+1 |
| | |||||
* | #3367 from Kristjan Valur Jonsson: | Andrew M. Kuchling | 2008-08-05 | 1 | -1/+1 |
| | | | | | | | If a PyTokenizer_FromString() is called with an empty string, the tokenizer's line_start member never gets initialized. Later, it is compared with the token pointer 'a' in parsetok.c:193 and that behavior can result in undefined behavior. | ||||
* | #1683 prevent forking from interfering in threading storage | Benjamin Peterson | 2008-06-13 | 1 | -0/+2 |
| | | | | This should prevent some test_multiprocessing failures | ||||
* | 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 | 2 | -21/+21 |
| | | | | | | | 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. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 2 | -21/+21 |
| | |||||
* | Issue2681: the literal 0o8 was wrongly accepted, and evaluated as float(0.0). | Amaury Forgeot d'Arc | 2008-04-24 | 1 | -1/+1 |
| | | | | | This happened only when 8 is the first digit. Credits go to Lukas Meuser. | ||||
* | #2627 Let it be known what pgen generates | Benjamin Peterson | 2008-04-13 | 1 | -0/+3 |
| | |||||
* | Use file.write instead of print to make it easier to merge with 3k. | Neal Norwitz | 2008-03-31 | 1 | -12/+13 |
| | |||||
* | Make AST nodes pickleable. | Georg Brandl | 2008-03-30 | 1 | -2/+27 |
| | |||||
* | Fix error message -- "expects either 0 or 0 arguments" | Georg Brandl | 2008-03-30 | 1 | -2/+4 |
| | |||||
* | Make _fields attr for no fields consistent with _attributes attr. | Georg Brandl | 2008-03-30 | 1 | -8/+3 |
| | |||||
* | #2505: allow easier creation of AST nodes. | Georg Brandl | 2008-03-30 | 1 | -8/+100 |
| | |||||
* | Patch #2511: Give the "excepthandler" AST item proper attributes by making ↵ | Georg Brandl | 2008-03-30 | 1 | -5/+2 |
| | | | | it a Sum. | ||||
* | Properly check for consistency with the third argument of | Georg Brandl | 2008-03-29 | 1 | -5/+12 |
| | | | | compile() when compiling an AST node. | ||||
* | Silence compiler warning at the source. | Georg Brandl | 2008-03-28 | 1 | -1/+1 |
| | |||||
* | Patch #1810 by Thomas Lee, reviewed by myself: | Georg Brandl | 2008-03-28 | 1 | -2/+268 |
| | | | | | allow compiling Python AST objects into code objects in compile(). | ||||
* | Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings. | Neal Norwitz | 2008-03-28 | 1 | -8/+0 |
| | | | | | | Rather than sprinkle casts throughout the code, change Py_CHARMASK to always cast it's result to an unsigned char. This should ensure we do the right thing when accessing an array with the result. | ||||
* | Surround p_flags access with #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD | Christian Heimes | 2008-03-26 | 1 | -0/+2 |
| | |||||
* | Patch #2477: Added from __future__ import unicode_literals | Christian Heimes | 2008-03-26 | 2 | -13/+40 |
| | | | | 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. | ||||
* | Backport of the print function, using a __future__ import. | Eric Smith | 2008-03-18 | 2 | -28/+10 |
| | | | | | | | | This work is substantially Anthony Baxter's, from issue 1633807. I just freshened it, made a few minor tweaks, and added the test cases. I also created issue 2412, which is to check for 2to3's behavior with the print function. I also added myself to ACKS. | ||||
* | Finished backporting PEP 3127, Integer Literal Support and Syntax. | Eric Smith | 2008-03-17 | 1 | -1/+25 |
| | | | | | | | | Added 0b and 0o literals to tokenizer. Modified PyOS_strtoul to support 0b and 0o inputs. Modified PyLong_FromString to support guessing 0b and 0o inputs. Renamed test_hexoct.py to test_int_literal.py and added binary tests. Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py | ||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 2 | -2/+1 |
| | |||||
* | Patch #1759: Backport of PEP 3129 class decorators | Christian Heimes | 2008-02-23 | 1 | -2/+2 |
| | | | | with some help from Georg | ||||
* | Issue 1881. Increased the stack limit from 500 to 1500. Also added | Facundo Batista | 2008-02-23 | 1 | -1/+1 |
| | | | | | | a test for this (and because of this test you'll see in stderr a message that parser.c sends before raising MemoryError). Thanks Ralf Schmitt. | ||||
* | Add assertion that we do not blow out newl | Neal Norwitz | 2008-01-27 | 1 | -0/+1 |
| | |||||
* | Fixed bug #1915: Python compiles with --enable-unicode=no again. However ↵ | Christian Heimes | 2008-01-23 | 1 | -2/+1 |
| | | | | several extension methods and modules do not work without unicode support. | ||||
* | Add a "const" to make gcc happy. | Georg Brandl | 2008-01-21 | 1 | -1/+1 |
| | |||||
* | Issue #1882: when compiling code from a string, encoding cookies in the | Georg Brandl | 2008-01-21 | 1 | -2/+13 |
| | | | | second line of code were not always recognized correctly. | ||||
* | Fix #1679: "0x" was taken as a valid integer literal. | Georg Brandl | 2008-01-19 | 1 | -0/+7 |
| | | | | | Fixes the tokenizer, tokenize.py and int() to reject this. Patches by Malte Helmert. | ||||
* | Added bytes and b'' as aliases for str and '' | Christian Heimes | 2008-01-18 | 1 | -0/+8 |
| | |||||
* | Coverity issue CID #167 | Christian Heimes | 2008-01-18 | 1 | -0/+1 |
| | | | | | | | | | | | | Event alloc_fn: Called allocation function "metacompile" [model] Event var_assign: Assigned variable "gr" to storage returned from "metacompile" gr = metacompile(n); Event pass_arg: Variable "gr" not freed or pointed-to in function "maketables" [model] g = maketables(gr); translatelabels(g); addfirstsets(g); Event leaked_storage: Returned without freeing storage "gr" return g; | ||||
* | Fix #define ordering. | Georg Brandl | 2008-01-07 | 2 | -4/+3 |
| | |||||
* | Make Python compile with --disable-unicode. | Georg Brandl | 2008-01-07 | 2 | -0/+4 |
| | |||||
* | Warning "<> not supported in 3.x" should be enabled only when the -3 option ↵ | Amaury Forgeot d'Arc | 2007-11-24 | 1 | -1/+1 |
| | | | | is set. | ||||
* | Fixed problems in the last commit. Filenames and line numbers weren't ↵ | Christian Heimes | 2007-11-23 | 1 | -9/+11 |
| | | | | | | 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 | -1/+10 |
| | | | | The patches are adding deprecation warnings for back ticks and <> | ||||
* | Change a PyErr_Print() into a PyErr_Clear(), | Guido van Rossum | 2007-10-15 | 1 | -1/+1 |
| | | | | per discussion in issue 1031213. | ||||
* | Fix Coverity 180: Don't overallocate. We don't need structs, but pointers. | Neal Norwitz | 2007-10-12 | 1 | -1/+2 |
| | | | | Also fix a memory leak. | ||||
* | Patch #1031213: Decode source line in SyntaxErrors back to its original | Martin v. Löwis | 2007-09-04 | 3 | -5/+77 |
| | | | | source encoding. Will backport to 2.5. | ||||
* | Fix a couple of problems in generating the AST code: | Neal Norwitz | 2007-02-26 | 1 | -5/+3 |
| | | | | | | * 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 | ||||
* | Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.c | Brett Cannon | 2007-02-12 | 1 | -2/+19 |
| | | | | | | 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). | ||||
* | Change a very minor inconsistency (that is purely cosmetic) in the AST | Brett Cannon | 2007-02-11 | 1 | -1/+1 |
| | | | | definition. | ||||
* | Prefix AST symbols with _Py_. Fixes #1637022. | Martin v. Löwis | 2007-01-19 | 1 | -1/+6 |
| | | | | Will backport. | ||||
* | Comment grammar | Andrew M. Kuchling | 2006-10-06 | 1 | -1/+1 |
| | |||||
* | Fix a bug in the parser's future statement handling that led to "with" | Georg Brandl | 2006-09-24 | 1 | -10/+12 |
| | | | | | not being recognized as a keyword after, e.g., this statement: from __future__ import division, with_statement | ||||
* | with and as are now keywords. There are some generated files I can't recreate. | Neal Norwitz | 2006-09-06 | 1 | -3/+5 |
| | |||||
* | Handle malloc failure. | Neal Norwitz | 2006-08-13 | 1 | -0/+4 |
| | | | | Klocwork 281 |