Antoine Pitrou
f364e7b598
Fix memory leak with FLUFL-related syntax errors (!)
2011-11-13 01:02:02 +01:00
Antoine Pitrou
9ec2593bda
Fix memory leak with FLUFL-related syntax errors (!)
2011-11-13 01:01:23 +01:00
Meador Inge
70d86bdef1
Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py
...
Parser/asdl_c.py was missed in commit 7109f31300fb when _Py_identifier
was replaced with _Py_IDENTIFIER. Thanks to Eric Snow for the patch.
2011-10-22 14:06:50 -05:00
Martin v. Löwis
1c67dd9b15
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.
2011-10-14 15:16:45 +02:00
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
2011-10-14 10:20:37 +02:00
Martin v. Löwis
1ee1b6fe0d
Use identifier API for PyObject_GetAttrString.
2011-10-10 18:11:30 +02:00
Martin v. Löwis
afe55bba33
Add API for static strings, primarily good for identifiers.
...
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-10-09 10:38:36 +02:00
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
2011-09-28 07:41:54 +02:00
Éric Araujo
6f08f53e79
Merge 3.2
2011-09-02 17:32:30 +02:00
Benjamin Peterson
0224d4e699
accept bytes for the AST 'string' type
...
This is a temporary kludge and all is well in 3.3.
2011-08-31 22:13:03 -04:00
Benjamin Peterson
5a3f49bb7e
revert code which conditionally writes Python-ast.h ( closes #12727 )
2011-08-11 14:42:28 -05:00
Benjamin Peterson
257a1d0f28
2.x syntax
2011-08-09 18:48:02 -05:00
Benjamin Peterson
4ec450d3c7
make this work on 2.4
2011-08-09 18:38:57 -05:00
Benjamin Peterson
6f7500424c
make this work with py2.5
2011-08-09 16:49:52 -05:00
Benjamin Peterson
398256b230
don't rewrite the header file if it hasn't changed; this reduces development build time
2011-08-09 16:28:58 -05:00
Benjamin Peterson
4dc6499613
the bool asdl type died a while ago
2011-08-09 16:10:09 -05:00
Benjamin Peterson
e249841903
add a asdl bytes type, so Bytes.s be properly typechecked
2011-08-09 16:08:39 -05:00
Benjamin Peterson
8a4b42b7f4
merge 3.2
2011-07-22 11:10:43 -05:00
Benjamin Peterson
180e63507d
None is ok for identifiers but not strings
2011-07-22 11:09:07 -05:00
Benjamin Peterson
86f088e8e5
merge 3.2
2011-07-22 10:55:02 -05:00
Benjamin Peterson
2193d2b72b
type check AST strings and identifiers
...
This is related to a21829180423 as well as #12609 and #12610 .
2011-07-22 10:50:23 -05:00
Benjamin Peterson
efad2449fc
hardcode the old svn __version__
2011-07-22 10:39:12 -05:00
Benjamin Peterson
0bd152cd67
remove ast.__version__ ( closes #12273 )
2011-07-15 21:10:13 -05:00
Benjamin Peterson
620b2c8c98
comment which is not applicable anymore
2011-07-15 15:27:34 -05:00
Benjamin Peterson
0c1036270d
remove intrcheck.c, which hasn't been used for years
2011-06-20 19:22:34 -05:00
Victor Stinner
0c9f31b4c0
(Merge 3.2) Issue #12016 : my_fgets() now always clears errors before calling
...
fgets(). Fix the following case: sys.stdin.read() stopped with CTRL+d (end of
file), raw_input() interrupted by CTRL+c.
2011-05-30 23:47:01 +02:00
Victor Stinner
4f71101eed
Issue #12016 : my_fgets() now always clears errors before calling fgets(). Fix
...
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.
2011-05-30 23:46:00 +02:00
Benjamin Peterson
758888d437
don't restrict unexpected EOF errors to the first line ( closes #12216 )
2011-05-30 11:12:38 -05:00
Benjamin Peterson
43af12b0b4
unify TryExcept and TryFinally ( closes #12199 )
2011-05-29 11:43:10 -05:00
Benjamin Peterson
bf1bbc1452
reflect with statements with multiple items in the AST ( closes #12106 )
2011-05-27 13:58:08 -05:00
Victor Stinner
00c5925533
(Merge 3.2) Issue #1195 : Fix input() if it is interrupted by CTRL+d and then
...
CTRL+c, clear the end-of-file indicator after CTRL+d.
2011-05-10 00:21:26 +02:00
Victor Stinner
db932786af
Issue #1195 : Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear
...
the end-of-file indicator after CTRL+d.
2011-05-10 00:20:35 +02:00
Victor Stinner
4755ab010f
Issue #1195 : Fix input() if it is interrupted by CTRL+d and then CTRL+c,
...
clear the end-of-file indicator after CTRL+d.
2011-05-10 00:19:53 +02:00
Jesus Cea
c1935d2abf
Revert bb62908896fe, but keep the test
2011-04-25 04:03:58 +02:00
Jesus Cea
88f7841be7
Correctly merging #9319 into 3.3?
2011-04-25 03:46:43 +02:00
Victor Stinner
c68b6aaec8
Issue #9319 : Fix a crash on parsing a Python source code without encoding
...
cookie and not valid in UTF-8: use "<file>" as the filename instead of
reading from NULL.
2011-04-23 00:41:19 +02:00
Victor Stinner
4ae3b447c8
(Merge 3.2) Issue #11650 : PyOS_StdioReadline() retries fgets() if it was
...
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac
OS X. Patch written by Charles-Francois Natali.
2011-04-09 16:01:55 +02:00
Victor Stinner
a870e35a7d
(Merge 3.1) Issue #11650 : PyOS_StdioReadline() retries fgets() if it was
...
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac
OS X. Patch written by Charles-Francois Natali.
2011-04-09 15:59:25 +02:00
Victor Stinner
52c950f229
Issue #11650 : PyOS_StdioReadline() retries fgets() if it was interrupted
...
(EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch
written by Charles-Francois Natali.
2011-04-09 15:55:44 +02:00
Victor Stinner
fe7c5b5bdf
Issue #9319 : Include the filename in "Non-UTF8 code ..." syntax error.
2011-04-05 01:48:03 +02:00
Victor Stinner
7f2fee3640
Issue #10785 : Store the filename as Unicode in the Python parser.
2011-04-05 00:39:01 +02:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Ezio Melotti
373089239b
#11515 : Merge with 3.2.
2011-03-15 06:03:08 +02:00
Benjamin Peterson
c9723d09eb
use only the hex version, since the revno is unreliable across repos
2011-03-13 16:36:08 -05:00
Benjamin Peterson
0d6245dd89
actually get file rev
2011-03-12 18:35:02 -06:00
Benjamin Peterson
6cb2b923e0
convert ast versioning to mercurial
2011-03-12 18:28:16 -06:00
Brett Cannon
b94767ff44
Issue #8914 : fix various warnings from the Clang static analyzer v254.
2011-02-22 20:15:44 +00:00
Victor Stinner
034c7537d8
Issue #10841 : don't translate newlines for pgen
2011-01-07 18:56:19 +00:00
Victor Stinner
89e3436606
Issue #10841 : set binary mode on files; the parser translates newlines
...
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-07 18:47:22 +00:00