R David Murray
0ce3e9d82b
Merge: #19855: uuid.get_node now looks on the PATH for executables on unix.
2013-12-17 21:14:41 -05:00
R David Murray
4be1e24933
#19855: uuid.get_node now looks on the PATH for executables on unix.
...
Patch by Serhiy Storchaka.
2013-12-17 21:13:16 -05:00
Serhiy Storchaka
cac05e2e90
Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:51:40 +02:00
Serhiy Storchaka
1c84ac1f55
Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:50:02 +02:00
Nick Coghlan
9a76735b1d
Close #19946: use runpy as needed in multiprocessing
...
- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__
2013-12-17 22:17:26 +10:00
Victor Stinner
1d006a2c0e
Backout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not work on Windows
2013-12-16 23:39:40 +01:00
Victor Stinner
fffb96ba66
Issue #18283: shutil.which() now supports bytes argument, not only text argument.
2013-12-16 22:48:48 +01:00
Christian Heimes
bd9cbb0691
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:16:45 +01:00
Christian Heimes
de57074874
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:15:44 +01:00
Antoine Pitrou
0048c98fef
Issue #19921: When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Antoine Pitrou
c274fd22ed
Issue #19887: Improve the Path.resolve() algorithm to support certain symlink chains.
...
Original patch by Serhiy.
2013-12-16 19:57:41 +01:00
Zachary Ware
d2e48ca813
Issue #19987: Merge with 3.3
2013-12-16 09:05:44 -06:00
Zachary Ware
1007432c95
Issue #19987: Re-write test_alias_fallback in test_winsound to have two
...
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 09:02:41 -06:00
Christian Heimes
d9fbb446a2
merge
2013-12-16 14:35:58 +01:00
Christian Heimes
cb3558dcc1
Issue #18215: Add script Tools/ssl/test_multiple_versions.py to compile and
...
run Python's unit tests with multiple versions of OpenSSL.
2013-12-16 14:35:39 +01:00
Serhiy Storchaka
cc83b0c8f6
Issue #19912: Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:14:19 +02:00
Serhiy Storchaka
593568bf47
Issue #19912: Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:13:28 +02:00
Serhiy Storchaka
f5ad91c392
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:36:10 +02:00
Serhiy Storchaka
3d7e11520e
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:34:55 +02:00
R David Murray
755d5ea12a
Merge: #19532: make compileall with no file/dir args respect -f and -q.
2013-12-15 20:56:00 -05:00
R David Murray
8a1d1e647e
#19532: make compileall with no file/dir args respect -f and -q.
...
Patch by Vajrasky Kok.
2013-12-15 20:49:38 -05:00
Serhiy Storchaka
c836a28cc1
Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e.
2013-12-14 21:07:09 +02:00
Serhiy Storchaka
79f19f9e7c
Issue #19623: Fixed writing to unseekable files in the aifc module.
2013-12-14 20:42:22 +02:00
Serhiy Storchaka
84d28b4ee5
Issue #19623: Fixed writing to unseekable files in the aifc module.
2013-12-14 20:35:04 +02:00
Serhiy Storchaka
03241e8017
Issue #17919: Fixed integer overflow in the eventmask parameter.
2013-12-14 19:18:39 +02:00
Serhiy Storchaka
5da107ac72
Issue #17919: Fixed integer overflow in the eventmask parameter.
2013-12-14 19:12:02 +02:00
Brett Cannon
98620d87f2
Issue #19963: Document that importlib.import_module() will import
...
parent packages automatically.
2013-12-13 13:57:41 -05:00
Brett Cannon
ca7ab7c7f1
Issue #19946: Raise ImportError when the main module cannot be found
...
by multiprocessing.spawn (before it was raising an AttributeError).
2013-12-13 11:43:10 -05:00
Victor Stinner
507ac3a591
(Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if
...
"%c" argument is not in range [0; 255].
2013-12-13 12:15:31 +01:00
Victor Stinner
c9362cf86a
Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
...
argument is not in range [0; 255].
2013-12-13 12:14:44 +01:00
Victor Stinner
590cebe391
Issue #19787: PyThread_set_key_value() now always set the value
...
In Python 3.3, PyThread_set_key_value() did nothing if the key already exists
(if the current value is a non-NULL pointer).
When _PyGILState_NoteThreadState() is called twice on the same thread with a
different Python thread state, it still keeps the old Python thread state to
keep the old behaviour. Replacing the Python thread state with the new state
introduces new bugs: see issues #10915 and #15751.
2013-12-13 11:08:56 +01:00
Serhiy Storchaka
cb1c4c8c22
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:55 +02:00
Serhiy Storchaka
3ad2d70947
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:01 +02:00
Victor Stinner
441adb8c57
Backout changeset 46393019b650
...
test_capi is failing and the fix is not trivial, I prefer to revert
2013-12-13 04:14:41 +01:00
Victor Stinner
cd0cb8ccd3
Close #19787: PyThread_set_key_value() now always set the value. In Python 3.3,
...
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).
_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.
2013-12-13 03:22:00 +01:00
Victor Stinner
1310510793
Issue #14432: Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:17:29 +01:00
Victor Stinner
fdeb6ec45a
Issue #14432: Remove the thread state field from the frame structure. Fix a
...
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
2013-12-13 02:01:38 +01:00
Victor Stinner
62ca10051b
Close #19576: PyGILState_Ensure() now initializes threads. At startup, Python
...
has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the
first time and PyEval_InitThreads() was not called yet, a GIL needs to be
created.
2013-12-13 01:46:43 +01:00
Zachary Ware
63321b4978
Issue #19828: Merge with 3.3
2013-12-11 17:01:21 -06:00
Zachary Ware
36193e73b8
Issue #19828: Fixed test_site when the whole suite is run with -S.
...
Also, cleaned up an unused import.
2013-12-11 16:59:44 -06:00
R David Murray
50bfbb9903
#19063: fix set_payload handling of non-ASCII string input.
...
This version of the fix raises an error instead of accepting the invalid
input (ie: if a non-ASCII string is used but no charset is specified).
2013-12-11 16:52:11 -05:00
R David Murray
d5c4c7411a
#19063: partially fix set_payload handling of non-ASCII string input.
...
This is a backward compatible partial fix, the complete fix requires raising
an error instead of accepting the invalid input, so the real fix is only
suitable for 3.4.
2013-12-11 16:34:34 -05:00
Serhiy Storchaka
c4f3212abc
Issue #17576: Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:26:36 +02:00
Serhiy Storchaka
31a655411a
Issue #17576: Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:07:54 +02:00
Eric Snow
b282b3d804
Issue #18864: Add a setter for ModuleSpec.has_location.
2013-12-10 22:16:41 -07:00
Gregory P. Smith
acd17304d2
Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by the
...
fix to Issue #14635 in Python 3.3.0 to be interpreted as milliseconds instead
of seconds when the platform supports select.poll (ie: everywhere). It is now
treated as seconds once again.
2013-12-10 18:25:21 -08:00
Ned Deily
e72b90eb7a
Issue #18270: merge from 3.3
2013-12-10 16:32:57 -08:00
Ned Deily
f3c6589ea3
Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
...
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:24:01 -08:00
Serhiy Storchaka
2a446bf76c
Issue #19928: Implemented a test for repr() of cell objects.
2013-12-10 10:21:51 +02:00
Serhiy Storchaka
1f79cdfbfa
Issue #19928: Implemented a test for repr() of cell objects.
2013-12-10 10:20:31 +02:00