]>
granicus.if.org Git - python/log
Victor Stinner [Mon, 16 Dec 2013 21:48:48 +0000 (22:48 +0100)]
Issue #18283: shutil.which() now supports bytes argument, not only text argument.
Victor Stinner [Mon, 16 Dec 2013 21:38:46 +0000 (22:38 +0100)]
(Merge 3.3) Close #19999: tolerate coarse time when testing time.monotonic() on
very busy/slow buildbot
Victor Stinner [Mon, 16 Dec 2013 21:36:50 +0000 (22:36 +0100)]
Close #19999: tolerate coarse time when testing time.monotonic() on very
busy/slow buildbot
Christian Heimes [Mon, 16 Dec 2013 20:17:02 +0000 (21:17 +0100)]
merge
Christian Heimes [Mon, 16 Dec 2013 20:16:45 +0000 (21:16 +0100)]
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.
Christian Heimes [Mon, 16 Dec 2013 20:15:44 +0000 (21:15 +0100)]
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.
Antoine Pitrou [Mon, 16 Dec 2013 20:00:53 +0000 (21:00 +0100)]
Mention specific exceptions instead of OSError where appropriate.
Antoine Pitrou [Mon, 16 Dec 2013 19:22:37 +0000 (20:22 +0100)]
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.
Antoine Pitrou [Mon, 16 Dec 2013 18:57:41 +0000 (19:57 +0100)]
Issue #19887: Improve the Path.resolve() algorithm to support certain symlink chains.
Original patch by Serhiy.
Zachary Ware [Mon, 16 Dec 2013 15:05:44 +0000 (09:05 -0600)]
Issue #19987: Merge with 3.3
Zachary Ware [Mon, 16 Dec 2013 15:02:41 +0000 (09:02 -0600)]
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.
Christian Heimes [Mon, 16 Dec 2013 13:54:24 +0000 (14:54 +0100)]
Issue #19987: disable test_winsound's test_alias_fallback test when no sound card
is available. The test fails on Windows Server 2008.
Christian Heimes [Mon, 16 Dec 2013 13:35:58 +0000 (14:35 +0100)]
merge
Christian Heimes [Mon, 16 Dec 2013 13:35:39 +0000 (14:35 +0100)]
Issue #18215: Add script Tools/ssl/test_multiple_versions.py to compile and
run Python's unit tests with multiple versions of OpenSSL.
Serhiy Storchaka [Mon, 16 Dec 2013 13:17:33 +0000 (15:17 +0200)]
Null merge
Serhiy Storchaka [Mon, 16 Dec 2013 13:17:13 +0000 (15:17 +0200)]
Merge heads
Serhiy Storchaka [Mon, 16 Dec 2013 13:16:35 +0000 (15:16 +0200)]
Merge heads
Serhiy Storchaka [Mon, 16 Dec 2013 13:14:19 +0000 (15:14 +0200)]
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().
Serhiy Storchaka [Mon, 16 Dec 2013 13:13:28 +0000 (15:13 +0200)]
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().
Charles-François Natali [Mon, 16 Dec 2013 12:49:56 +0000 (13:49 +0100)]
Mere.
Charles-François Natali [Mon, 16 Dec 2013 12:49:38 +0000 (13:49 +0100)]
Merge.
Charles-François Natali [Mon, 16 Dec 2013 12:49:30 +0000 (13:49 +0100)]
Merge.
Charles-François Natali [Mon, 16 Dec 2013 12:49:19 +0000 (13:49 +0100)]
Merge.
Serhiy Storchaka [Mon, 16 Dec 2013 12:36:10 +0000 (14:36 +0200)]
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
Serhiy Storchaka [Mon, 16 Dec 2013 12:34:55 +0000 (14:34 +0200)]
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
Christian Heimes [Mon, 16 Dec 2013 12:28:20 +0000 (13:28 +0100)]
Issue #17919: add missing import of USHRT_MAX
Christian Heimes [Mon, 16 Dec 2013 12:27:16 +0000 (13:27 +0100)]
Issue #17919: add missing import of USHRT_MAX
Charles-François Natali [Mon, 16 Dec 2013 11:03:05 +0000 (12:03 +0100)]
Merge.
Charles-François Natali [Mon, 16 Dec 2013 11:02:42 +0000 (12:02 +0100)]
Merge.
R David Murray [Mon, 16 Dec 2013 01:56:00 +0000 (20:56 -0500)]
Merge: #19532: make compileall with no file/dir args respect -f and -q.
R David Murray [Mon, 16 Dec 2013 01:49:38 +0000 (20:49 -0500)]
#19532: make compileall with no file/dir args respect -f and -q.
Patch by Vajrasky Kok.
Christian Heimes [Sun, 15 Dec 2013 20:49:17 +0000 (21:49 +0100)]
test_ssl: skip tests when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 20:44:43 +0000 (21:44 +0100)]
test_poplib: skip stls_context test when SNI is not available
Stefan Krah [Sun, 15 Dec 2013 20:02:28 +0000 (21:02 +0100)]
Merge.
Raymond Hettinger [Sun, 15 Dec 2013 19:56:14 +0000 (11:56 -0800)]
Minor code clean-up. Keep the C-API all in one section.
Stefan Krah [Sun, 15 Dec 2013 19:52:08 +0000 (20:52 +0100)]
Merge from 3.3.
Stefan Krah [Sun, 15 Dec 2013 19:45:08 +0000 (20:45 +0100)]
Issue #19986: Avoid an incorrect warning of older gcc versions.
Christian Heimes [Sun, 15 Dec 2013 18:50:13 +0000 (19:50 +0100)]
fixed test_ftplib
Christian Heimes [Sun, 15 Dec 2013 18:39:32 +0000 (19:39 +0100)]
test_imaplib: skip check_hostname test when SNI is not available
Christian Heimes [Sun, 15 Dec 2013 18:38:22 +0000 (19:38 +0100)]
test_ftplib: skip check_hostname test when SNI is not available
Charles-François Natali [Sun, 15 Dec 2013 18:12:52 +0000 (19:12 +0100)]
Issue #19965: Make sure that Python-ast.h is properly taken into account in the
makefile.
Charles-François Natali [Sun, 15 Dec 2013 18:12:07 +0000 (19:12 +0100)]
Merge.
Charles-François Natali [Sun, 15 Dec 2013 18:09:00 +0000 (19:09 +0100)]
Issue #19965: Make sure that Python-ast.h is properly taken into account in the
makefile.
Christian Heimes [Sun, 15 Dec 2013 16:02:36 +0000 (17:02 +0100)]
Skip some tests that require server name indication (SNI)
Christian Heimes [Sun, 15 Dec 2013 14:36:20 +0000 (15:36 +0100)]
Import USHRT_MAX to fix failing test_devpool test
Nick Coghlan [Sun, 15 Dec 2013 10:33:02 +0000 (20:33 +1000)]
Issue #19700: set __spec__ appropriately in runpy
Note that __spec__.name is not currently guaranteed to be in
sys.modules when the code is running, only __name__ is.
The "running module is in sys.modules" invariant will be
expanded to also cover __spec__.name in a subsequent patch.
Serhiy Storchaka [Sat, 14 Dec 2013 19:07:51 +0000 (21:07 +0200)]
Null merge
Serhiy Storchaka [Sat, 14 Dec 2013 19:07:09 +0000 (21:07 +0200)]
Issue #17576: Removed deprecation warnings added in changeset
618cca51a27e .
Serhiy Storchaka [Sat, 14 Dec 2013 18:42:22 +0000 (20:42 +0200)]
Issue #19623: Fixed writing to unseekable files in the aifc module.
Serhiy Storchaka [Sat, 14 Dec 2013 18:35:04 +0000 (20:35 +0200)]
Issue #19623: Fixed writing to unseekable files in the aifc module.
Serhiy Storchaka [Sat, 14 Dec 2013 17:18:39 +0000 (19:18 +0200)]
Issue #17919: Fixed integer overflow in the eventmask parameter.
Serhiy Storchaka [Sat, 14 Dec 2013 17:12:02 +0000 (19:12 +0200)]
Issue #17919: Fixed integer overflow in the eventmask parameter.
R David Murray [Sat, 14 Dec 2013 16:26:06 +0000 (11:26 -0500)]
#19970: fix additional typo in 3.4 asyncio docs.
Stefan Krah [Sat, 14 Dec 2013 12:43:10 +0000 (13:43 +0100)]
Issue #19972: Add rarely used freefunc. This fixes a leak if sys.exit()
is used in a program.
Stefan Krah [Sat, 14 Dec 2013 11:58:59 +0000 (12:58 +0100)]
Merge from 3.3.
Stefan Krah [Sat, 14 Dec 2013 11:58:09 +0000 (12:58 +0100)]
Fix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subverted
by including stdint.h before mpdecimal.h. In that case the only option left
is to compile with -D_STDC_LIMIT_MACROS.
Ezio Melotti [Sat, 14 Dec 2013 10:43:08 +0000 (12:43 +0200)]
#19981: merge with 3.3.
Ezio Melotti [Sat, 14 Dec 2013 10:42:29 +0000 (12:42 +0200)]
#19981: fix typo in email.mailbox docs. Patch by Claudiu Popa.
R David Murray [Sat, 14 Dec 2013 01:53:26 +0000 (20:53 -0500)]
Merge: #19970: Fix some comment typos.
R David Murray [Sat, 14 Dec 2013 01:52:19 +0000 (20:52 -0500)]
#19970: Fix some comment typos.
Report and patch by Vajrasky Kok.
R David Murray [Fri, 13 Dec 2013 22:21:42 +0000 (17:21 -0500)]
#19975: remove unused imports from webbrowser module.
Report and patch by Claudiu Popa.
Brett Cannon [Fri, 13 Dec 2013 21:47:19 +0000 (16:47 -0500)]
Issue #19704: Port test.test_threaded_import to PEP 451
Brett Cannon [Fri, 13 Dec 2013 18:58:47 +0000 (13:58 -0500)]
merge for issue #19963
Brett Cannon [Fri, 13 Dec 2013 18:57:41 +0000 (13:57 -0500)]
Issue #19963: Document that importlib.import_module() will import
parent packages automatically.
R David Murray [Fri, 13 Dec 2013 17:30:29 +0000 (12:30 -0500)]
Merge: #18036: update .pyc FAQ entry in light of PEP 3147.
R David Murray [Fri, 13 Dec 2013 17:29:29 +0000 (12:29 -0500)]
#18036: update .pyc FAQ entry in light of PEP 3147.
Initial patch by Phil Connell.
Brett Cannon [Fri, 13 Dec 2013 16:43:10 +0000 (11:43 -0500)]
Issue #19946: Raise ImportError when the main module cannot be found
by multiprocessing.spawn (before it was raising an AttributeError).
Victor Stinner [Fri, 13 Dec 2013 13:33:01 +0000 (14:33 +0100)]
Issue #14432: Document the removal of the PyFrameObject.f_tstate field
Victor Stinner [Fri, 13 Dec 2013 11:51:24 +0000 (12:51 +0100)]
asyncio doc: explain where does the task come from.
Victor Stinner [Fri, 13 Dec 2013 11:47:39 +0000 (12:47 +0100)]
asyncio doc: change style of the sequence diagram to focus on the control flow
Victor Stinner [Fri, 13 Dec 2013 11:15:31 +0000 (12:15 +0100)]
(Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if
"%c" argument is not in range [0; 255].
Victor Stinner [Fri, 13 Dec 2013 11:14:44 +0000 (12:14 +0100)]
Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].
Victor Stinner [Fri, 13 Dec 2013 10:08:56 +0000 (11:08 +0100)]
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.
Serhiy Storchaka [Fri, 13 Dec 2013 10:08:55 +0000 (12:08 +0200)]
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
Serhiy Storchaka [Fri, 13 Dec 2013 10:08:01 +0000 (12:08 +0200)]
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
Victor Stinner [Fri, 13 Dec 2013 09:57:04 +0000 (10:57 +0100)]
asyncio: remove references to the Tulip project, rename Tulip to asyncio.
Patch written by Vajrasky Kok.
Victor Stinner [Fri, 13 Dec 2013 03:14:41 +0000 (04:14 +0100)]
Backout changeset
46393019b650
test_capi is failing and the fix is not trivial, I prefer to revert
R David Murray [Fri, 13 Dec 2013 02:40:20 +0000 (21:40 -0500)]
#19957: Simplify encode_7or8bit now that _payload is always str.
Patch by Vajrasky Kok, test enhancement by me.
Victor Stinner [Fri, 13 Dec 2013 02:22:00 +0000 (03:22 +0100)]
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.
Victor Stinner [Fri, 13 Dec 2013 01:45:18 +0000 (02:45 +0100)]
Issue #19952: test_asyncio: relax timings of Windows events, buildbots are
sometimes busy
Victor Stinner [Fri, 13 Dec 2013 01:32:37 +0000 (02:32 +0100)]
(Merge 3.3) Issue #14432: Fix compilation when thread support is disabled
Victor Stinner [Fri, 13 Dec 2013 01:30:12 +0000 (02:30 +0100)]
Issue #14432: Fix compilation when thread support is disabled
Victor Stinner [Fri, 13 Dec 2013 01:18:41 +0000 (02:18 +0100)]
Issue #14432: Null merge 3.3, Python 3.4 has a different fix
Victor Stinner [Fri, 13 Dec 2013 01:17:29 +0000 (02:17 +0100)]
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.
Victor Stinner [Fri, 13 Dec 2013 01:01:38 +0000 (02:01 +0100)]
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.
Victor Stinner [Fri, 13 Dec 2013 00:46:43 +0000 (01:46 +0100)]
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.
Victor Stinner [Thu, 12 Dec 2013 22:07:40 +0000 (23:07 +0100)]
Issue #19751: Fix hash_info test of test_sys on SPARC Solaris
Victor Stinner [Thu, 12 Dec 2013 22:06:07 +0000 (23:06 +0100)]
Issue #19751: Fix typo in configuration option
Stefan Krah [Thu, 12 Dec 2013 18:05:08 +0000 (19:05 +0100)]
Merge from 3.3.
Stefan Krah [Thu, 12 Dec 2013 17:51:51 +0000 (18:51 +0100)]
Do not discard const qualifier without a reason.
Zachary Ware [Thu, 12 Dec 2013 16:33:27 +0000 (10:33 -0600)]
Merge fix from 3.3
Zachary Ware [Thu, 12 Dec 2013 16:32:16 +0000 (10:32 -0600)]
Avoid UnicodeEncodeError by only printing ASCII.
This fixes running test_decimal in verbose mode on Windows,
which I broke in issue #19572.
Victor Stinner [Thu, 12 Dec 2013 11:35:17 +0000 (12:35 +0100)]
Add a sequence diagram for the chained coroutines example
Zachary Ware [Wed, 11 Dec 2013 23:21:13 +0000 (17:21 -0600)]
Properly filter some recent additions in the Windows build files.
Zachary Ware [Wed, 11 Dec 2013 23:18:37 +0000 (17:18 -0600)]
Null merge with 3.3.
There are enough new things to make the merge harder than making the
change in VS, and there are other things to add filters for in 3.4.
Zachary Ware [Wed, 11 Dec 2013 23:12:34 +0000 (17:12 -0600)]
Filter namespaceobject's files properly in the pythoncore VS project.
Zachary Ware [Wed, 11 Dec 2013 23:01:21 +0000 (17:01 -0600)]
Issue #19828: Merge with 3.3
Zachary Ware [Wed, 11 Dec 2013 22:59:44 +0000 (16:59 -0600)]
Issue #19828: Fixed test_site when the whole suite is run with -S.
Also, cleaned up an unused import.
R David Murray [Wed, 11 Dec 2013 21:52:11 +0000 (16:52 -0500)]
#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).
R David Murray [Wed, 11 Dec 2013 21:48:52 +0000 (16:48 -0500)]
Null merge for #19063 (3.4 fix is different).