summaryrefslogtreecommitdiff
path: root/Parser
AgeCommit message (Collapse)AuthorLines
2012-09-30#15923: fix a mistake in asdl_c.py that resulted in a TypeError after ↵Ezio Melotti-1/+1
2801bf875a24 (see #15801).
2012-08-11Remove unused variables in parsetok().Georg Brandl-2/+1
2012-08-03Closes #15512: Correct __sizeof__ support for parserJesus Cea-0/+26
2012-07-03Issue #1677: Unused variable warning in Non-WindowsJesus Cea-1/+4
2012-06-29Issue #1677: Handle better a race condition between the interactive ↵Tim Golden-22/+15
interpreter and the Ctrl-C signal handler on Windows
2012-04-30Issue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.Martin v. Löwis-1/+4
2011-12-16Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou-1/+3
overwrite it. Original patch by Hallvard B Furuseth.
2011-11-22Issue #13436: Fix a bogus error message when an AST object was passedAmaury Forgeot d'Arc-5/+1
an invalid integer value.
2011-11-13Fix memory leak with FLUFL-related syntax errors (!)Antoine Pitrou-0/+2
2011-08-31accept bytes for the AST 'string' typeBenjamin Peterson-1/+1
This is a temporary kludge and all is well in 3.3.
2011-07-22None is ok for identifiers but not stringsBenjamin Peterson-10/+8
2011-07-22hardcode the old svn __version__Benjamin Peterson-5/+3
2011-07-22type check AST strings and identifiersBenjamin Peterson-2/+19
This is related to a21829180423 as well as #12609 and #12610.
2011-05-30Issue #12016: my_fgets() now always clears errors before calling fgets(). FixVictor Stinner-0/+1
the following case: sys.stdin.read() stopped with CTRL+d (end of file), raw_input() interrupted by CTRL+c.
2011-05-10Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clearVictor Stinner-0/+1
the end-of-file indicator after CTRL+d.
2011-05-10Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,Victor Stinner-0/+1
clear the end-of-file indicator after CTRL+d.
2011-04-23Issue #9319: Fix a crash on parsing a Python source code without encodingVictor Stinner-1/+4
cookie and not valid in UTF-8: use "<file>" as the filename instead of reading from NULL.
2011-04-09(Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it wasVictor Stinner-45/+49
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch written by Charles-Francois Natali.
2011-04-09Issue #11650: PyOS_StdioReadline() retries fgets() if it was interruptedVictor Stinner-4/+5
(EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch written by Charles-Francois Natali.
2011-03-15#11515: Merge with 3.1.Ezio Melotti-1/+1
2011-03-15#11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-1/+1
2011-01-07Issue #10841: don't translate newlines for pgenVictor Stinner-1/+1
2011-01-07Issue #10841: set binary mode on files; the parser translates newlinesVictor Stinner-0/+7
On Windows, set the binary mode on stdin, stdout, stderr and all io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser translates newlines (\r\n => \n).
2011-01-05Remove arbitrary string length limitsVictor Stinner-1/+1
PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed size, it is no more a fixed-buffer of 500 bytes.
2010-12-28Compile pgenmain.c and printgrammar.c with PGEN definedVictor Stinner-0/+4
2010-12-27Issue #10778: decoding_fgets() decodes the filename from the filesystemVictor Stinner-6/+11
encoding instead of UTF-8.
2010-11-26Merged revisions ↵Georg Brandl-1/+1
85820,85823,85825,85840,85843-85845,85849-85851,85855,85867,85875,85907-85908,85911,85914 via svnmerge from svn+ssh://svn.python.org/python/branches/py3k ........ r85820 | georg.brandl | 2010-10-24 16:20:22 +0200 (So, 24 Okt 2010) | 1 line Remove usage of exception indexing. ........ r85823 | georg.brandl | 2010-10-24 16:32:45 +0200 (So, 24 Okt 2010) | 1 line Fix style. ........ r85825 | georg.brandl | 2010-10-24 17:16:02 +0200 (So, 24 Okt 2010) | 1 line Add documentation about the default warnings filters. ........ r85840 | georg.brandl | 2010-10-25 19:50:20 +0200 (Mo, 25 Okt 2010) | 1 line #3018: tkinter demo fixes for py3k. ........ r85843 | georg.brandl | 2010-10-26 08:59:23 +0200 (Di, 26 Okt 2010) | 1 line Markup fix. ........ r85844 | georg.brandl | 2010-10-26 12:39:14 +0200 (Di, 26 Okt 2010) | 1 line Work a bit more on tkinter demos. ........ r85845 | georg.brandl | 2010-10-26 12:42:16 +0200 (Di, 26 Okt 2010) | 1 line faqwiz is removed. ........ r85849 | georg.brandl | 2010-10-26 21:31:06 +0200 (Di, 26 Okt 2010) | 1 line #10200: typo. ........ r85850 | georg.brandl | 2010-10-26 21:58:11 +0200 (Di, 26 Okt 2010) | 1 line #10200: typo. ........ r85851 | georg.brandl | 2010-10-26 22:12:37 +0200 (Di, 26 Okt 2010) | 1 line Fix import. ........ r85855 | georg.brandl | 2010-10-27 09:21:54 +0200 (Mi, 27 Okt 2010) | 1 line Encoding fix. ........ r85867 | georg.brandl | 2010-10-27 22:01:51 +0200 (Mi, 27 Okt 2010) | 1 line Add David. ........ r85875 | georg.brandl | 2010-10-28 10:38:30 +0200 (Do, 28 Okt 2010) | 1 line Fix bytes/str issues in get-remote-certificate.py. ........ r85907 | georg.brandl | 2010-10-29 06:54:13 +0200 (Fr, 29 Okt 2010) | 1 line #10222: fix for overzealous AIX compiler. ........ r85908 | georg.brandl | 2010-10-29 07:22:17 +0200 (Fr, 29 Okt 2010) | 1 line send_bytes obviously needs bytes... ........ r85911 | georg.brandl | 2010-10-29 07:36:28 +0200 (Fr, 29 Okt 2010) | 1 line Fix markup error and update false positive entries from "make suspicious". ........ r85914 | georg.brandl | 2010-10-29 08:17:38 +0200 (Fr, 29 Okt 2010) | 1 line (?:...) is a non-capturing, but still grouping construct. ........
2010-11-21fix refleakBenjamin Peterson-0/+1
2010-11-20Merged revisions 86545 via svnmerge fromBenjamin Peterson-3/+1
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86545 | benjamin.peterson | 2010-11-19 22:31:07 -0600 (Fri, 19 Nov 2010) | 1 line new plan: functions that want 'tmp' can declare it ........
2010-11-20new plan: functions that want 'tmp' can declare itBenjamin Peterson-3/+1
2010-11-20Merged revisions 86540 via svnmerge fromBenjamin Peterson-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86540 | benjamin.peterson | 2010-11-19 20:01:45 -0600 (Fri, 19 Nov 2010) | 1 line c89 declarations ........
2010-11-20c89 declarationsBenjamin Peterson-1/+1
2010-11-20Merged revisions 86538 via svnmerge fromBenjamin Peterson-8/+8
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86538 | benjamin.peterson | 2010-11-19 19:38:49 -0600 (Fri, 19 Nov 2010) | 1 line use %R format code; fixes invalid dereferencing #10391 ........
2010-11-20use %R format code; fixes invalid dereferencing #10391Benjamin Peterson-8/+8
2010-10-29#10222: fix for overzealous AIX compiler.Georg Brandl-1/+1
2010-10-19Recorded merge of revisions 85569-85570 via svnmerge fromVictor Stinner-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85569 | victor.stinner | 2010-10-16 15:14:10 +0200 (sam., 16 oct. 2010) | 4 lines Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expects filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode. ........ r85570 | victor.stinner | 2010-10-16 15:42:53 +0200 (sam., 16 oct. 2010) | 4 lines Fix ast_error_finish() and err_input(): filename can be NULL Fix my previous commit (r85569). ........
2010-10-16Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expectsVictor Stinner-1/+1
filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.
2010-10-14Issue #10095: fp_setreadl() doesn't reopen the file, reuse instead the fileVictor Stinner-7/+10
descriptor.
2010-06-27Merged revisions 81465-81466,81468,81679,81735,81760,81868,82183 via ↵Benjamin Peterson-2/+3
svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81465 | georg.brandl | 2010-05-22 06:29:19 -0500 (Sat, 22 May 2010) | 2 lines Issue #3924: Ignore cookies with invalid "version" field in cookielib. ........ r81466 | georg.brandl | 2010-05-22 06:31:16 -0500 (Sat, 22 May 2010) | 1 line Underscore the name of an internal utility function. ........ r81468 | georg.brandl | 2010-05-22 06:43:25 -0500 (Sat, 22 May 2010) | 1 line #8635: document enumerate() start parameter in docstring. ........ r81679 | benjamin.peterson | 2010-06-03 16:21:03 -0500 (Thu, 03 Jun 2010) | 1 line use a set for membership testing ........ r81735 | michael.foord | 2010-06-05 06:46:59 -0500 (Sat, 05 Jun 2010) | 1 line Extract error message truncating into a method (unittest.TestCase._truncateMessage). ........ r81760 | michael.foord | 2010-06-05 14:38:42 -0500 (Sat, 05 Jun 2010) | 1 line Issue 8302. SkipTest exception is setUpClass or setUpModule is now reported as a skip rather than an error. ........ r81868 | benjamin.peterson | 2010-06-09 14:45:04 -0500 (Wed, 09 Jun 2010) | 1 line fix code formatting ........ r82183 | benjamin.peterson | 2010-06-23 15:29:26 -0500 (Wed, 23 Jun 2010) | 1 line cpython only gc tests ........
2010-06-22Merged revisions 82160 via svnmerge fromBenjamin Peterson-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r82160 | benjamin.peterson | 2010-06-22 14:45:51 -0500 (Tue, 22 Jun 2010) | 1 line spacing nit; this isn't C ........
2010-06-07use the 's' format code instead of 'U'Benjamin Peterson-1/+1
2010-05-18Merged revisions 81288 via svnmerge fromSenthil Kumaran-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81288 | senthil.kumaran | 2010-05-18 19:18:45 +0530 (Tue, 18 May 2010) | 9 lines Merged revisions 81286 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81286 | senthil.kumaran | 2010-05-18 19:10:23 +0530 (Tue, 18 May 2010) | 3 lines Doc Fix. Correct link to Zephyr ASDL Abstract page. ........ ................
2010-05-18Merged revisions 81286 via svnmerge fromSenthil Kumaran-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81286 | senthil.kumaran | 2010-05-18 19:10:23 +0530 (Tue, 18 May 2010) | 3 lines Doc Fix. Correct link to Zephyr ASDL Abstract page. ........
2010-05-15Merged revisions 81222 via svnmerge fromVictor Stinner-10/+10
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81222 | victor.stinner | 2010-05-16 01:00:51 +0200 (dim., 16 mai 2010) | 11 lines Merged revisions 81220 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81220 | victor.stinner | 2010-05-16 00:55:28 +0200 (dim., 16 mai 2010) | 4 lines Use 4-spaces for indentation (instead of tabs) in pgen outputs Regenerate (reindent) Python/graminit.c ........ ................
2010-05-15Merged revisions 81220 via svnmerge fromVictor Stinner-10/+10
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81220 | victor.stinner | 2010-05-16 00:55:28 +0200 (dim., 16 mai 2010) | 4 lines Use 4-spaces for indentation (instead of tabs) in pgen outputs Regenerate (reindent) Python/graminit.c ........
2010-05-09Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou-3210/+3210
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-3263/+3263
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
2010-04-28Use PyErr_Format() in decoding_fgets()Victor Stinner-3/+1
Avoid a buffer of 500 bytes allocated on the stack.
2010-04-03Merged revisions 79725 via svnmerge fromBenjamin Peterson-11/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79725 | benjamin.peterson | 2010-04-03 18:03:35 -0500 (Sat, 03 Apr 2010) | 4 lines use our own locale independent ctype macros requires building pyctype.o into pgen ........
2010-04-03Merged revisions 79723 via svnmerge fromBenjamin Peterson-1/+11
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79723 | benjamin.peterson | 2010-04-03 17:48:51 -0500 (Sat, 03 Apr 2010) | 1 line ensure that the locale does not affect the tokenization of identifiers ........