Trent Nelson
05c197c75e
Make PyAST_obj2mod C89 compliant.
13 years ago
Ezio Melotti
c820de5e60
#15923 : fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801 ).
14 years ago
Ezio Melotti
cb2916a714
#15923 : fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801 ).
14 years ago
Georg Brandl
02144cca2f
Remove unused variables in parsetok().
14 years ago
Georg Brandl
cc98887e45
Remove unused variables in parsetok().
14 years ago
Jesus Cea
e9c5318967
Closes #15512 : Correct __sizeof__ support for parser
14 years ago
Jesus Cea
3e3192d8f7
Closes #15512 : Correct __sizeof__ support for parser
14 years ago
Jesus Cea
035997f1a3
Issue #1677 : Unused variable warning in Non-Windows
14 years ago
Jesus Cea
d0f5f4827d
Issue #1677 : Unused variable warning in Non-Windows
14 years ago
Jesus Cea
99ad1f1354
Backed out changeset 7ccc2cea6969
14 years ago
Jesus Cea
263afe2fed
Issue #1667 : Unused variable warning in Non-Windows
14 years ago
Tim Golden
b92b757eed
Issue #1677 : Handle better a race condition between the interactive interpreter and
the Ctrl-C signal handler on Windows
14 years ago
Tim Golden
4702336a0d
Issue #1677 : Handle better a race condition between the interactive interpreter and
the Ctrl-C signal handler on Windows
14 years ago
Martin v. Löwis
e654c11f56
Issue #14433 : Prevent msvcrt crash in interactive prompt when stdin is closed.
14 years ago
Antoine Pitrou
c345ce1a69
Issue #10350 : Read and save errno before calling a function which might overwrite it.
Original patch by Hallvard B Furuseth.
14 years ago
Amaury Forgeot d'Arc
58e8761da6
Issue #13436 : Fix a bogus error message when an AST object was passed
an invalid integer value.
14 years ago
Antoine Pitrou
9ec2593bda
Fix memory leak with FLUFL-related syntax errors (!)
14 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
180e63507d
None is ok for identifiers but not strings
15 years ago
Benjamin Peterson
efad2449fc
hardcode the old svn __version__
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
5eed3062f5
allow None identifiers
15 years ago
Benjamin Peterson
77820242dd
verify the types of AST strings and identifiers ( closes #12609 and #12610 )
15 years ago
Benjamin Peterson
59c69512be
hardcode the old svn __version__
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
Victor Stinner
08563d904d
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
Victor Stinner
2c585f607e
(Merge 3.1) 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
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
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
5de51ac4c0
(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.
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
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
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
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.
16 years ago
Victor Stinner
22a351aabf
Issue #10095 : fp_setreadl() doesn't reopen the file, reuse instead the file
descriptor.
16 years ago