summaryrefslogtreecommitdiffstats
path: root/Parser
Commit message (Collapse)AuthorAgeFilesLines
* allow None identifiersBenjamin Peterson2011-07-221-1/+1
|
* verify the types of AST strings and identifiers (closes #12609 and #12610)Benjamin Peterson2011-07-221-2/+19
|
* hardcode the old svn __version__Benjamin Peterson2011-07-221-5/+3
|
* Issue #12016: my_fgets() now always clears errors before calling fgets(). FixVictor Stinner2011-05-301-0/+1
| | | | | the following case: sys.stdin.read() stopped with CTRL+d (end of file), raw_input() interrupted by CTRL+c.
* (Merge 3.1) Issue #1195: Fix input() if it is interrupted by CTRL+d and thenVictor Stinner2011-05-091-0/+1
| | | | CTRL+c, clear the end-of-file indicator after CTRL+d.
* (Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it wasVictor Stinner2011-04-091-45/+49
| | | | | interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch written by Charles-Francois Natali.
* Issue #9020: The Py_IS* macros from pyctype.h should generally only beStefan Krah2010-06-241-1/+1
| | | | | used with signed/unsigned char arguments. For integer arguments, EOF has to be handled separately.
* spacing nit; this isn't CBenjamin Peterson2010-06-221-1/+1
|
* fix code formattingBenjamin Peterson2010-06-091-2/+3
|
* Doc Fix. Correct link to Zephyr ASDL Abstract page.Senthil Kumaran2010-05-181-1/+1
|
* Use 4-spaces for indentation (instead of tabs) in pgen outputsVictor Stinner2010-05-151-10/+10
| | | | Regenerate (reindent) Python/graminit.c
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-0917-3286/+3286
|
* use our own locale independent ctype macrosBenjamin Peterson2010-04-031-19/+3
| | | | requires building pyctype.o into pgen
* ensure that the locale does not affect the tokenization of identifiersBenjamin Peterson2010-04-031-4/+18
|
* Issue #3137: Don't ignore errors at startup, especially a keyboard interruptVictor Stinner2010-03-101-1/+5
| | | | | | (SIGINT). If an error occurs while importing the site module, the error is printed and Python exits. Initialize the GIL before importing the site module.
* Issue #7820: The parser tokenizer restores all bytes in the right if the BOMVictor Stinner2010-03-021-22/+32
| | | | | | check fails. Fix an assertion in pydebug mode.
* #2560: remove an unnecessary 'for' loop from my_fgets() in Parser/myreadline.c.Andrew M. Kuchling2010-02-221-48/+45
| | | | | | | | | | | Noted by Joseph Armbruster; patch by Jessica McKellar. The original code was 'for (;;) {...}', where ... ended with a 'return -2' statement and did not contain a 'break' or 'continue' statement. Therefore, the body of the loop is always executed once. Once upon a time there was a 'continue' in the loop, but it was removed in rev36346, committed by mwh on Wed Jul 7 17:44:12 2004.
* 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
|