summaryrefslogtreecommitdiffstats
path: root/Parser
Commit message (Collapse)AuthorAgeFilesLines
* Issue #2333: Backport set and dict comprehensions syntax.Alexandre Vassalotti2010-01-111-0/+2
|
* Issue #2335: Backport set literals syntax from Python 3.x.Alexandre Vassalotti2010-01-091-0/+1
|
* account for PyObject_IsInstance's new ability to failBenjamin Peterson2009-12-131-3/+19
|
* rewrite translate_newlines for clarityBenjamin Peterson2009-12-061-12/+11
|
* fix several compile() issues by translating newlines in the tokenizerBenjamin Peterson2009-11-123-18/+69
|
* spellingBenjamin Peterson2009-11-071-1/+1
|
* fix some coding styleBenjamin Peterson2009-10-091-13/+30
|
* http://bugs.python.org/issue6836Kristján Valur Jónsson2009-09-281-3/+11
| | | | A memory block allocated with one API was being handed over to an object that used another API to release it.
* don't mask encoding errors when decoding a string #6289Benjamin Peterson2009-06-161-4/+1
|
* when no module is given in a 'from' relative import, make ImportFrom.module NULLBenjamin Peterson2009-06-131-1/+1
|
* Delete outdated make file for building the parser with MSVC 6.Alexandre Vassalotti2009-06-121-45/+0
|
* remove has_keyBenjamin Peterson2009-06-071-1/+1
|
* use booleans for flagsBenjamin Peterson2009-06-072-19/+19
|
* always inherit from an appropiate base classBenjamin Peterson2009-06-071-4/+2
|
* inherit from objectBenjamin Peterson2009-06-071-1/+1
|
* Issue #4279: Fix build of parsermodule under Cygwin.Martin v. Löwis2009-01-111-0/+1
|
* Remove useless string literal.Georg Brandl2009-01-031-1/+1
|
* fix __future__ imports when multiple features are givenBenjamin Peterson2008-10-261-3/+0
|
* fix compiler warningBenjamin Peterson2008-10-191-1/+1
|
* Fixed #4067 by implementing _attributes and _fields for the AST root node.Armin Ronacher2008-10-191-0/+18
|
* update asdl_c.py from r66377Benjamin Peterson2008-09-101-1/+1
|
* #3367: revert rev. 65539: this change causes test_parser to failAndrew M. Kuchling2008-08-051-1/+1
|
* #3367 from Kristjan Valur Jonsson:Andrew M. Kuchling2008-08-051-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 storageBenjamin Peterson2008-06-131-0/+2
| | | | This should prevent some test_multiprocessing failures
* Merge in release25-maint r60793:Gregory P. Smith2008-06-111-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. Smith2008-06-092-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 PyBytesChristian Heimes2008-05-262-21/+21
|
* Issue2681: the literal 0o8 was wrongly accepted, and evaluated as float(0.0).Amaury Forgeot d'Arc2008-04-241-1/+1
| | | | | This happened only when 8 is the first digit. Credits go to Lukas Meuser.
* #2627 Let it be known what pgen generatesBenjamin Peterson2008-04-131-0/+3
|
* Use file.write instead of print to make it easier to merge with 3k.Neal Norwitz2008-03-311-12/+13
|
* Make AST nodes pickleable.Georg Brandl2008-03-301-2/+27
|
* Fix error message -- "expects either 0 or 0 arguments"Georg Brandl2008-03-301-2/+4
|
* Make _fields attr for no fields consistent with _attributes attr.Georg Brandl2008-03-301-8/+3
|
* #2505: allow easier creation of AST nodes.Georg Brandl2008-03-301-8/+100
|
* Patch #2511: Give the "excepthandler" AST item proper attributes by making ↵Georg Brandl2008-03-301-5/+2
| | | | it a Sum.
* Properly check for consistency with the third argument ofGeorg Brandl2008-03-291-5/+12
| | | | compile() when compiling an AST node.
* Silence compiler warning at the source.Georg Brandl2008-03-281-1/+1
|
* Patch #1810 by Thomas Lee, reviewed by myself:Georg Brandl2008-03-281-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 Norwitz2008-03-281-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_KEYWORDChristian Heimes2008-03-261-0/+2
|
* Patch #2477: Added from __future__ import unicode_literalsChristian Heimes2008-03-262-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 theGeorg Brandl2008-03-251-1/+1
| | | | EOL 80 limit and supply more alternatives in warning messages.
* Backport of the print function, using a __future__ import.Eric Smith2008-03-182-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 Smith2008-03-171-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 importsChristian Heimes2008-02-232-2/+1
|
* Patch #1759: Backport of PEP 3129 class decoratorsChristian Heimes2008-02-231-2/+2
| | | | with some help from Georg
* Issue 1881. Increased the stack limit from 500 to 1500. Also addedFacundo Batista2008-02-231-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 newlNeal Norwitz2008-01-271-0/+1
|
* Fixed bug #1915: Python compiles with --enable-unicode=no again. However ↵Christian Heimes2008-01-231-2/+1
| | | | several extension methods and modules do not work without unicode support.
* Add a "const" to make gcc happy.Georg Brandl2008-01-211-1/+1
|