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
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.
2011-01-05 03:33:26 +00:00
Victor Stinner
60fe499941
Compile pgenmain.c and printgrammar.c with PGEN defined
2010-12-28 23:05:20 +00:00
Victor Stinner
83098a4095
Issue #10778 : decoding_fgets() decodes the filename from the filesystem
...
encoding instead of UTF-8.
2010-12-27 20:12:13 +00:00
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.
........
2010-11-26 08:59:40 +00:00
Benjamin Peterson
0a4dae5309
fix refleak
2010-11-21 15:12:34 +00:00
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
........
2010-11-20 04:37:00 +00:00
Benjamin Peterson
d8f6597318
new plan: functions that want 'tmp' can declare it
2010-11-20 04:31:07 +00:00
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
........
2010-11-20 02:04:14 +00:00
Benjamin Peterson
0e9e98edc7
c89 declarations
2010-11-20 02:01:45 +00:00
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
........
2010-11-20 01:48:38 +00:00
Benjamin Peterson
5b066817e2
use %R format code; fixes invalid dereferencing #10391
2010-11-20 01:38:49 +00:00
Georg Brandl
2b15bd810d
#10222 : fix for overzealous AIX compiler.
2010-10-29 04:54:13 +00:00
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).
........
2010-10-19 01:22:07 +00:00
Victor Stinner
4c7c8c3023
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.
2010-10-16 13:14:10 +00:00
Victor Stinner
22a351aabf
Issue #10095 : fp_setreadl() doesn't reopen the file, reuse instead the file
...
descriptor.
2010-10-14 12:04:34 +00:00
Benjamin Peterson
3e5cd1d04e
Merged revisions 81465-81466,81468,81679,81735,81760,81868,82183 via 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-27 21:45:24 +00:00
Benjamin Peterson
60995fbdc5
Merged revisions 82160 via svnmerge from
...
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-22 20:02:39 +00:00