Martin v. Löwis
1c67dd9b15
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.
15 years ago
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
15 years ago
Martin v. Löwis
1ee1b6fe0d
Use identifier API for PyObject_GetAttrString.
15 years ago
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.
15 years ago
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
15 years ago
Benjamin Peterson
0224d4e699
accept bytes for the AST 'string' type
This is a temporary kludge and all is well in 3.3.
15 years ago
Benjamin Peterson
4058211e8d
accept bytes for the AST 'string' type
This is a temporary kludge and all is well in 3.3.
15 years ago
Benjamin Peterson
5a3f49bb7e
revert code which conditionally writes Python-ast.h ( closes #12727 )
15 years ago
Benjamin Peterson
257a1d0f28
2.x syntax
15 years ago
Benjamin Peterson
4ec450d3c7
make this work on 2.4
15 years ago
Benjamin Peterson
6f7500424c
make this work with py2.5
15 years ago
Benjamin Peterson
398256b230
don't rewrite the header file if it hasn't changed; this reduces development build time
15 years ago
Benjamin Peterson
4dc6499613
the bool asdl type died a while ago
15 years ago
Benjamin Peterson
e249841903
add a asdl bytes type, so Bytes.s be properly typechecked
15 years ago
Benjamin Peterson
180e63507d
None is ok for identifiers but not strings
15 years ago
Benjamin Peterson
2193d2b72b
type check AST strings and identifiers
This is related to a21829180423 as well as #12609 and #12610 .
15 years ago
Benjamin Peterson
efad2449fc
hardcode the old svn __version__
15 years ago
Benjamin Peterson
0bd152cd67
remove ast.__version__ ( closes #12273 )
15 years ago
Benjamin Peterson
620b2c8c98
comment which is not applicable anymore
15 years ago
Benjamin Peterson
0c1036270d
remove intrcheck.c, which hasn't been used for years
15 years ago
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.
15 years ago
Benjamin Peterson
758888d437
don't restrict unexpected EOF errors to the first line ( closes #12216 )
15 years ago
Benjamin Peterson
43af12b0b4
unify TryExcept and TryFinally ( closes #12199 )
15 years ago
Benjamin Peterson
bf1bbc1452
reflect with statements with multiple items in the AST ( closes #12106 )
15 years ago
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.
15 years ago
Jesus Cea
c1935d2abf
Revert bb62908896fe, but keep the test
15 years ago
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.
15 years ago
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.
15 years ago
Victor Stinner
fe7c5b5bdf
Issue #9319 : Include the filename in "Non-UTF8 code ..." syntax error.
15 years ago
Victor Stinner
7f2fee3640
Issue #10785 : Store the filename as Unicode in the Python parser.
15 years ago
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Benjamin Peterson
c9723d09eb
use only the hex version, since the revno is unreliable across repos
15 years ago
Benjamin Peterson
0d6245dd89
actually get file rev
15 years ago
Benjamin Peterson
6cb2b923e0
convert ast versioning to mercurial
15 years ago
Brett Cannon
b94767ff44
Issue #8914 : fix various warnings from the Clang static analyzer v254.
15 years ago
Victor Stinner
034c7537d8
Issue #10841 : don't translate newlines for pgen
15 years ago
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).
15 years ago
Victor Stinner
aaa4e9a438
Remove arbitrary string length limits
PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed
size, it is no more a fixed-buffer of 500 bytes.
15 years ago
Victor Stinner
60fe499941
Compile pgenmain.c and printgrammar.c with PGEN defined
15 years ago
Victor Stinner
83098a4095
Issue #10778 : decoding_fgets() decodes the filename from the filesystem
encoding instead of UTF-8.
15 years ago
Georg Brandl
f55aa80b37
Merged revisions 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.
........
15 years ago
Benjamin Peterson
0a4dae5309
fix refleak
15 years ago
Benjamin Peterson
787cddc93d
Merged revisions 86545 via svnmerge from
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
........
15 years ago
Benjamin Peterson
d8f6597318
new plan: functions that want 'tmp' can declare it
15 years ago
Benjamin Peterson
e82c169622
Merged revisions 86540 via svnmerge from
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
........
15 years ago
Benjamin Peterson
0e9e98edc7
c89 declarations
15 years ago
Benjamin Peterson
aab9585130
Merged revisions 86538 via svnmerge from
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
........
15 years ago
Benjamin Peterson
5b066817e2
use %R format code; fixes invalid dereferencing #10391
15 years ago
Georg Brandl
2b15bd810d
#10222 : fix for overzealous AIX compiler.
15 years ago
Victor Stinner
15244f7b12
Recorded merge of revisions 85569-85570 via svnmerge from
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).
........
16 years ago