Commit Graph

77035 Commits

Author SHA1 Message Date
Ronald Oussoren 3687e8055c Issue #18427: str.replace could crash the interpreter with huge strings.
This fixes two places where 'int'  was used to represent
the size of strings, instead of 'Py_ssize_t'.

(The issue is not present in the corresponding code in the 3.x branches)

Fixes #18427
2013-07-11 13:33:55 +02:00
R David Murray f7c8584545 #18424: PEP8ify the tense of the sum docstring. 2013-07-10 16:23:15 -04:00
Ronald Oussoren cc879a0592 Issue #18377: Code cleanup in Python Launcher
This changeset fixes a number of compiler warnings in the Python Launcher
binary for OSX. It also cleans up whitespace usage in those sources.
2013-07-07 09:49:23 +02:00
Ronald Oussoren 51ee65645a Issue #12990: The "Python Launcher" on OSX could not launch python scripts that have paths that include wide characters. 2013-07-06 13:19:58 +02:00
Christian Heimes 20d46692fc Issue #18347: ElementTree's html serializer now preserves the case of closing tags. 2013-07-05 01:41:30 +02:00
Antoine Pitrou 0c503c2c7f Issue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé. 2013-07-04 21:03:10 +02:00
Eric V. Smith e38905b4fa Closes #18312: 'make distclean' no longer deletes files in dot-directories. 2013-07-02 09:02:03 -04:00
Richard Oudkerk 1e462fefd6 Issue #17261: Ensure multiprocessing's proxies use proper address. 2013-07-02 13:31:43 +01:00
Richard Oudkerk 4bc130c065 Issue #14206: Clarify docs for Queue.join_cancel_thread(). 2013-07-02 12:58:21 +01:00
Richard Oudkerk 4903253069 Issue #17273: Clarify that pool methods can only be used by parent process. 2013-07-02 12:31:50 +01:00
Richard Oudkerk 41072db709 Issue #17097: Make multiprocessing ignore EINTR. 2013-07-01 18:45:28 +01:00
Terry Jan Reedy 44d8b11c3e Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
2013-07-01 00:42:44 -04:00
Terry Jan Reedy b6eeef4165 Issue #8515: Set __file__ when run file in IDLE. Backport 2c276d0553ff by
Andrew Svetlov, based on initial patch by Bruce Frederiksen.
2013-06-30 19:07:49 -04:00
Terry Jan Reedy d1caae86e5 Issue #18189: add test_delegator for Idle Delegator class.
Also change private dict used as a set to a set.
2013-06-30 18:36:53 -04:00
Terry Jan Reedy 7ab0c310c7 Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.
2013-06-30 16:51:53 -04:00
Terry Jan Reedy 6c1d9dd566 Tempfile.py: stop buildbot warning about using deprecated xreadlines.
The slightly odd behavior (the validity of passing a sizehint depends on the
type of self._file) was kept to avoid breaking code that depends on it.
Test_tempfile.test_xreadlines passes (along with everything else).
2013-06-30 13:57:57 -04:00
R David Murray 24dc75365e #18155: Regex-escape delimiter, in case it is a regex special char.
Patch by Vajrasky Kok, with slight modification to the tests by me.
2013-06-29 18:43:59 -04:00
Terry Jan Reedy 1d14246b77 Issue #18103: Update README.txt and test_idle to describe and run gui tests. 2013-06-29 18:22:02 -04:00
Terry Jan Reedy 8d7500387d Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner. 2013-06-29 13:15:36 -04:00
Terry Jan Reedy 2b149860a0 Issue #18316: Update idlelib 2.7 except clauses to ease backports. 2013-06-29 00:59:34 -04:00
Terry Jan Reedy 8eab008b53 Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.
2013-06-28 23:51:34 -04:00
Terry Jan Reedy 35115e6aab Issue #18315: Improve fileinput docs by adding 'bufsize' where missing and
replacing redundant signature in input() docstring with one-line summary.
Original patch by Terrel Shumway.
2013-06-28 18:59:19 -04:00
Benjamin Peterson 73d6aca5d2 reapply f1dc30a1be72 2013-06-25 11:35:44 -07:00
Benjamin Peterson 227f0faed2 reapply 5accb0ac8bfb 2013-06-25 11:34:48 -07:00
Benjamin Peterson 3968e29959 reapply f1dc30a1be72 2013-06-25 11:26:20 -07:00
Benjamin Peterson 13dd1f947e reapply f1dc30a1be72 2013-06-25 11:25:26 -07:00
Victor Stinner c1a44269da Issue #18135: ssl.SSLSocket.write() now raises an OverflowError if the input
string in longer than 2 gigabytes. The ssl module does not support partial
write.
2013-06-25 00:48:02 +02:00
Ned Deily 7dc9bd84df Issue #18164: Backport the more detailed embedding compile-and-link section
from the Python 3 documentation.
2013-06-24 14:21:43 -07:00
Richard Oudkerk 66e0a04d2e Fix typo. 2013-06-24 20:38:22 +01:00
Richard Oudkerk 2cc73e8e58 Clarify note and fix typo. 2013-06-24 18:11:21 +01:00
Richard Oudkerk acfbe22068 Issue #15818: Typo in docs. 2013-06-24 15:41:36 +01:00
Richard Oudkerk 56e968c50a Issue #18277: Document quirks of multiprocessing queue. 2013-06-24 14:45:24 +01:00
R David Murray 65e27fccdc Merge heads. 2013-06-23 16:12:32 -04:00
R David Murray 9575222b7f #18179: reflow paragraphs. 2013-06-23 16:10:37 -04:00
R David Murray 7f01d55333 #18179: document the local_hostname parameter.
Original patch by Berker Peksag.
2013-06-23 16:02:34 -04:00
Benjamin Peterson 478b08ee5a also backout f1dc30a1be72 for not being a bugfix 2013-06-23 11:38:11 -07:00
Serhiy Storchaka ba908c72a0 Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.
2013-06-23 20:22:09 +03:00
Christian Heimes 262df4d3e8 Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
for symlinks.
2013-06-23 16:27:01 +02:00
Victor Stinner 4807df41ad Issue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()
for strings longer than 2 gigabytes.
2013-06-23 15:15:10 +02:00
Victor Stinner 760388100e Issue #18137: Detect integer overflow on precision in float.__format__()
and complex.__format__().
2013-06-23 14:56:57 +02:00
Terry Jan Reedy 223a22b6ab #18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
2013-06-22 18:26:38 -04:00
Benjamin Peterson 10c74d28e4 backout 5accb0ac8bfb; needs more discussion on python-dev 2013-06-22 11:16:36 -07:00
Christian Heimes 0a89f8e2bb transplant test_stat from default to 2.7 in order to make sure it works on all supported platforms 2013-06-22 18:58:51 +02:00
Andrew Kuchling aa6c297316 #18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again
Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit.
2013-06-22 12:33:05 -04:00
Raymond Hettinger 22b4b4cef4 Arrange structure to match the common access patterns. 2013-06-22 00:51:01 -07:00
R David Murray ff22984ff1 Tweak programming faq examples so that it (mostly) passes doctest.
Back port of 0113247f894b from 3.3.

The exceptions are the import related questions at the end, which
need to be rewritten anyway, and a math example that doesn't
exist in the 3.3+ docs that I didn't bother trying to fix.
2013-06-19 17:00:43 -04:00
Antoine Pitrou 7e9cec04ab Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn. 2013-06-18 22:17:48 +02:00
Christian Heimes 3aa138fe1d Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available 2013-06-18 13:25:24 +02:00
Victor Stinner c7b0990a05 ctypes: AIX needs an explicit #include <alloca.h> to get alloca() 2013-06-17 22:03:35 +02:00
Serhiy Storchaka e2cc341ffa Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
2013-06-17 16:33:48 +03:00