R David Murray
6fb8fb17bf
#12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 22:45:20 -04:00
Trent Nelson
a45afcada3
Issue #15819 : Fix out-of-tree builds from a readonly source.
2012-08-30 14:32:02 +00:00
Benjamin Peterson
28a6cfaefc
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Petri Lehtinen
72b1426cfb
#11964 : Document a change in v3.2 to the json indent parameter
2012-08-28 07:08:44 +03:00
Ronald Oussoren
25437565f9
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
2012-08-25 11:19:14 +02:00
Mark Dickinson
e4204bcfb7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 19:32:13 +01:00
Antoine Pitrou
331624b67d
Issue #14674 : Add a discussion of the json module's standard compliance.
...
Patch by Chris Rebert.
2012-08-24 19:37:23 +02:00
R David Murray
638d40b433
#15249 : Mangle From lines correctly when body contains invalid bytes.
...
Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:14:13 -04:00
Ross Lagerwall
f2b34b8b96
Issue 15777: Fix a refleak in _posixsubprocess.
...
It was exposed by 03c98d05b140 and dbbf3ccf72e8.
2012-08-24 13:25:59 +02:00
Ned Deily
01d183732e
Issue #15645 : Ensure 2to3 grammar pickles are properly installed.
...
(Patch by Ronald Oussoren)
2012-08-22 23:27:26 -07:00
Ronald Oussoren
eb61f8b3a7
Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X.
...
This is due to an off-by-one error: the allocated buffer didn't have room for a NUL
character at the end of the mbstowcs result.
2012-08-22 14:24:14 +02:00
Trent Nelson
ee253ebf62
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
2012-08-21 23:41:43 +00:00
Trent Nelson
514dbb03ba
Issue #15285 : Refactor connect timeout test in test_timeout.
2012-08-20 21:22:59 -04:00
Petri Lehtinen
c6fdafcdf3
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:28:58 +03:00
Antoine Pitrou
75506e8b7c
Issue #15726 : Fix incorrect bounds checking in PyState_FindModule.
...
Patch by Robin Schreiber.
2012-08-20 19:30:46 +02:00
R David Murray
e56bf97ef4
#13579 : teach string.Formatter about 'a'.
...
Patch by Francisco Martín Brugué.
2012-08-19 17:26:34 -04:00
Andrew Svetlov
828607170d
Issue #15595 : Fix subprocess.Popen(universal_newlines=True)
...
for certain locales (utf-16 and utf-32 family).
Patch by Chris Jerdonek.
2012-08-19 22:13:41 +03:00
Antoine Pitrou
b47ea9a6fe
Issue #15615 : Add some tests for the json module's handling of invalid input data.
...
Patch by Kushal Das.
2012-08-18 20:46:23 +02:00
Mark Dickinson
05d79e9abf
Issue #15477 : Add workaround for log1p(-0.0) on platforms where it's broken.
2012-08-18 12:24:30 +01:00
Antoine Pitrou
6f430e4963
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
...
Patch by Serhiy Storchaka.
2012-08-15 23:18:25 +02:00
Petri Lehtinen
3d12c4317c
#11062 : Fix adding a message from file to Babyl mailbox
2012-08-15 14:26:27 +03:00
Richard Oudkerk
e88a2445bc
Issue #15646 : Prevent equivalent of a fork bomb when using multiprocessing
...
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:32 +01:00
Brian Curtin
6f5c5cb75b
Fix #15496 . Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth
2012-08-13 17:05:57 -05:00
Senthil Kumaran
1ef9caa2a1
Issue #15630 : Add an example for "continue" statement in the tutorial. Patch by
...
Daniel Ellis.
2012-08-12 12:01:47 -07:00
Antoine Pitrou
fbd4f80979
Issue #15444 : Use proper spelling for non-ASCII contributor names.
...
Patch by Serhiy Storchaka.
2012-08-11 16:51:50 +02:00
Meador Inge
03b4d5072a
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:35:45 -05:00
Brett Cannon
9b000e7a68
Issue #15482 : Properly document the default 'level' parameter for
...
__import__().
To help explain why the -1 default value is typically not seen, a note
about how import statements only use values of >= 0 is also noted.
2012-08-05 20:46:25 -04:00
Ned Deily
03e2180b3f
Issue #15560 : Fix building _sqlite3 extension on OS X with an SDK.
2012-08-05 14:56:21 -07:00
Andrew Svetlov
5ad514d281
Issue #13052 : Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
...
Patch by Roger Serwy.
2012-08-04 21:38:22 +03:00
Victor Stinner
90ef747e04
Close #13119 : use "\r\n" newline for sys.stdout/err on Windows
...
sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2.
2012-08-04 01:37:32 +02:00
Jesus Cea
16e2fca47e
Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:49:42 +02:00
Jesus Cea
e9c5318967
Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:28:37 +02:00
Antoine Pitrou
a9a53c7dc0
Issue #15538 : Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
...
Patch by Philipp Hagemeister.
2012-08-02 20:37:12 +02:00
Martin v. Löwis
4c1730db7c
Issue #8847 : Disable COMDAT folding in Windows PGO builds.
...
Analysis by Victor Stinner. Patch by Stefan Krah.
2012-08-01 10:32:11 +02:00
Andrew Svetlov
06c5c6d694
Issue #9803 : Don't close IDLE on saving if breakpoint is open.
...
Patch by Roger Serwy.
2012-07-31 19:48:00 +03:00
Andrew Svetlov
1fb0e3f3a2
Issue #12288 : Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
2012-07-30 19:59:53 +03:00
Ned Deily
3b796680c3
Issue #14018 : Fix OS X Tcl/Tk framework checking when using OS X SDKs.
2012-07-30 04:09:32 -07:00
Antoine Pitrou
8f328d0c1d
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
...
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou
10f0c50a0b
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
...
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00
Martin v. Löwis
33f799725c
Issue #15467 : Move helpers for __sizeof__ tests into test_support.
...
Patch by Serhiy Storchaka.
2012-07-29 16:33:05 +02:00
Richard Oudkerk
4887b1c0e7
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:06:11 +01:00
Andrew Svetlov
e708a8a4aa
Issue #15041 : update "see also" list in tkinter documentation.
2012-07-26 17:02:57 +03:00
Antoine Pitrou
09f2e6f902
Issue #15320 : Make iterating the list of tests thread-safe when running tests in multiprocess mode.
...
Patch by Chris Jerdonek.
2012-07-26 00:45:19 +02:00
R David Murray
186396dce6
#15232 : make NEWS entry more accurate.
2012-07-24 14:22:19 -04:00
Ned Deily
ecd4e9de5a
Issue #14197 : For OS X framework builds, ensure links to the shared
...
library are created with the proper ABI suffix.
2012-07-24 03:31:48 -07:00
Meador Inge
b14d8c9bcf
Issue #15402 : Add a __sizeof__ method to struct.Struct.
...
Initial patch by Serhiy Storchaka.
2012-07-23 10:01:29 -05:00
Senthil Kumaran
7e918cfe28
merge heads.
2012-07-22 19:32:44 -07:00
Senthil Kumaran
28a9f2193a
- Issue #15250 : Document that filecmp.dircmp compares files shallowly. Patch contributed by Chris Jerdonek.
2012-07-22 19:12:58 -07:00
R David Murray
6a31bc6d81
#15232 : correctly mangle From lines in MIME preamble and epilogue
2012-07-22 21:47:53 -04:00
R David Murray
00528e8fec
#13922 : argparse no longer incorrectly strips '--' after the first one.
...
Patch by Jeff Knupp.
2012-07-21 22:48:35 -04:00