]>
granicus.if.org Git - python/log
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
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).
R David Murray [Wed, 11 Dec 2013 21:34:34 +0000 (16:34 -0500)]
#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.
Serhiy Storchaka [Wed, 11 Dec 2013 19:26:36 +0000 (21:26 +0200)]
Issue #17576: Deprecation warning emitted now when __int__() or __index__()
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
Serhiy Storchaka [Wed, 11 Dec 2013 19:07:54 +0000 (21:07 +0200)]
Issue #17576: Deprecation warning emitted now when __int__() or __index__()
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
Eric Snow [Wed, 11 Dec 2013 05:16:41 +0000 (22:16 -0700)]
Issue #18864: Add a setter for ModuleSpec.has_location.
Gregory P. Smith [Wed, 11 Dec 2013 02:26:02 +0000 (18:26 -0800)]
null merge (3.4 doesn't need this fix)
Gregory P. Smith [Wed, 11 Dec 2013 02:25:21 +0000 (18:25 -0800)]
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.
Ned Deily [Wed, 11 Dec 2013 00:32:57 +0000 (16:32 -0800)]
Issue #18270: merge from 3.3
Ned Deily [Wed, 11 Dec 2013 00:24:01 +0000 (16:24 -0800)]
Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
shell window is present. (Original patch by Terry Reedy)
Zachary Ware [Tue, 10 Dec 2013 20:18:30 +0000 (14:18 -0600)]
Issue #19928: Fix test on Windows
Zachary Ware [Tue, 10 Dec 2013 20:17:22 +0000 (14:17 -0600)]
Issue #19928: Fix test on Windows
Ezio Melotti [Tue, 10 Dec 2013 12:06:18 +0000 (14:06 +0200)]
#19943: merge with 3.3.
Ezio Melotti [Tue, 10 Dec 2013 12:05:46 +0000 (14:05 +0200)]
#19943: fix typo noticed by Jakub Wilk.
Serhiy Storchaka [Tue, 10 Dec 2013 11:53:56 +0000 (13:53 +0200)]
Remove commented out debugging code (remnants of issue #18996).
Nick Coghlan [Tue, 10 Dec 2013 11:31:14 +0000 (21:31 +1000)]
Issue #19407: merge PPUG notes from 3.3
Nick Coghlan [Tue, 10 Dec 2013 11:24:55 +0000 (21:24 +1000)]
Issue #19407: add Python Packaging User Guide notes
The stdlib docs for package distribution and building extensions
are rather dated, and that isn't expected to change for 2.7 and
3.3.
The Python Packaging User Guide isn't complete either, but it's
already a much better road map for new users than the existing
stdlib docs.
Victor Stinner [Tue, 10 Dec 2013 11:20:14 +0000 (12:20 +0100)]
asyncio doc: simplify task example
Victor Stinner [Tue, 10 Dec 2013 11:18:15 +0000 (12:18 +0100)]
asyncio doc: don't document Task.cancel(), already documented in Future.cancel()
Victor Stinner [Tue, 10 Dec 2013 11:14:50 +0000 (12:14 +0100)]
asyncio: document Task.current_task()
Serhiy Storchaka [Tue, 10 Dec 2013 08:21:51 +0000 (10:21 +0200)]
Issue #19928: Implemented a test for repr() of cell objects.
Serhiy Storchaka [Tue, 10 Dec 2013 08:20:31 +0000 (10:20 +0200)]
Issue #19928: Implemented a test for repr() of cell objects.
Serhiy Storchaka [Tue, 10 Dec 2013 08:06:35 +0000 (10:06 +0200)]
Issue #19481: print() of string subclass instance in IDLE no more hangs.
Serhiy Storchaka [Tue, 10 Dec 2013 08:05:19 +0000 (10:05 +0200)]
Issue #19481: print() of string subclass instance in IDLE no more hangs.
Eric Snow [Tue, 10 Dec 2013 03:33:33 +0000 (20:33 -0700)]
Remove commented-out module spec test code and an out-of-date note.
Eric Snow [Tue, 10 Dec 2013 02:59:10 +0000 (19:59 -0700)]
Issue 19851: Fix a regression in reloading submodules.
Victor Stinner [Tue, 10 Dec 2013 01:52:49 +0000 (02:52 +0100)]
asyncio: don't document private functions
Victor Stinner [Tue, 10 Dec 2013 01:51:05 +0000 (02:51 +0100)]
asyncio: fix 2nd task example
Victor Stinner [Tue, 10 Dec 2013 01:47:22 +0000 (02:47 +0100)]
asyncio doc: rewrite the callback hello world to use call_soon() instead of a
direct call.
Victor Stinner [Tue, 10 Dec 2013 01:09:46 +0000 (02:09 +0100)]
assyncio doc: rewrite, improve and move coroutine, Future and Task examples
Victor Stinner [Tue, 10 Dec 2013 00:20:39 +0000 (01:20 +0100)]
(Merge 3.3) Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes.
Victor Stinner [Tue, 10 Dec 2013 00:19:58 +0000 (01:19 +0100)]
Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes.
Stefan Krah [Mon, 9 Dec 2013 18:18:59 +0000 (19:18 +0100)]
Fix typo.
Stefan Krah [Mon, 9 Dec 2013 18:11:05 +0000 (19:11 +0100)]
Fix whitespace.
Stefan Krah [Mon, 9 Dec 2013 18:03:24 +0000 (19:03 +0100)]
Merge 3.3.
Serhiy Storchaka [Mon, 9 Dec 2013 15:45:57 +0000 (17:45 +0200)]
Issue #15475: Add __sizeof__ implementations for itertools objects.
Victor Stinner [Mon, 9 Dec 2013 12:19:23 +0000 (13:19 +0100)]
asyncio doc: explain why the loop is running twice
Victor Stinner [Mon, 9 Dec 2013 12:04:12 +0000 (13:04 +0100)]
asyncio: another Future example using add_done_callback()
Victor Stinner [Mon, 9 Dec 2013 11:40:17 +0000 (12:40 +0100)]
asyncio doc: add an example with Future
Victor Stinner [Mon, 9 Dec 2013 01:10:08 +0000 (02:10 +0100)]
Issue #19817: Fix print_exception(), clear the exception on error
Victor Stinner [Mon, 9 Dec 2013 00:59:07 +0000 (01:59 +0100)]
Backed out changeset
c4c1c4bc8086
Victor Stinner [Mon, 9 Dec 2013 00:57:14 +0000 (01:57 +0100)]
Issue #19876: Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows
os.dup2() is available on Windows.