]>
granicus.if.org Git - python/log
Victor Stinner [Tue, 12 Nov 2013 15:37:55 +0000 (16:37 +0100)]
Close #19466: Clear the frames of daemon threads earlier during the Python
shutdown to call objects destructors. So "unclosed file" resource warnings are
now corretly emitted for daemon threads.
Andrew Kuchling [Tue, 12 Nov 2013 15:26:15 +0000 (10:26 -0500)]
Merge from 3.3
Andrew Kuchling [Tue, 12 Nov 2013 15:25:15 +0000 (10:25 -0500)]
Closes #12828: add docstring text noting this is an internal-only module
Andrew Kuchling [Tue, 12 Nov 2013 15:03:20 +0000 (10:03 -0500)]
Merge from 3.3
Andrew Kuchling [Tue, 12 Nov 2013 15:02:35 +0000 (10:02 -0500)]
Update e-mail address
Tim Golden [Tue, 12 Nov 2013 13:33:17 +0000 (13:33 +0000)]
Issue #13674 Null merge with 3.3
Tim Golden [Tue, 12 Nov 2013 13:24:03 +0000 (13:24 +0000)]
Issue #13674 Updated NEWS
Tim Golden [Tue, 12 Nov 2013 13:22:39 +0000 (13:22 +0000)]
Issue #13674 Updated NEWS
Tim Golden [Tue, 12 Nov 2013 12:51:37 +0000 (12:51 +0000)]
Remove mis-merged artefact
Tim Golden [Tue, 12 Nov 2013 12:48:20 +0000 (12:48 +0000)]
Issue13674 Correct crash with strftime %y format under Windows
Tim Golden [Tue, 12 Nov 2013 12:36:54 +0000 (12:36 +0000)]
Issue13674 Correct crash with strftime %y format under Windows
Zachary Ware [Tue, 12 Nov 2013 04:59:23 +0000 (22:59 -0600)]
Issue #19440: Clean up test_capi
Zachary Ware [Tue, 12 Nov 2013 04:47:04 +0000 (22:47 -0600)]
Issue #19440: Clean up test_capi
Zachary Ware [Tue, 12 Nov 2013 04:44:03 +0000 (22:44 -0600)]
Null merge
Zachary Ware [Tue, 12 Nov 2013 04:30:47 +0000 (22:30 -0600)]
Correct a merge error in Misc/NEWS
Andrew Kuchling [Mon, 11 Nov 2013 19:50:13 +0000 (14:50 -0500)]
#15422: remove NEWS item for a change that was later reverted
Andrew Kuchling [Mon, 11 Nov 2013 19:03:23 +0000 (14:03 -0500)]
Closes #6683: add a test that exercises multiple authentication.
The SMTP server advertises four different authentication methods, and
the code will try CRAM-MD5 first, which will fail, but LOGIN succeeds.
Tim Golden [Mon, 11 Nov 2013 15:08:40 +0000 (15:08 +0000)]
Remove outdated comment
Tim Golden [Mon, 11 Nov 2013 15:08:04 +0000 (15:08 +0000)]
Remove outdated comment
Nick Coghlan [Mon, 11 Nov 2013 12:11:55 +0000 (22:11 +1000)]
Close #19406: Initial implementation of ensurepip
Patch by Donald Stufft and Nick Coghlan
Kristjan Valur Jonsson [Mon, 11 Nov 2013 11:29:04 +0000 (11:29 +0000)]
Issue #8799: Reduce timing sensitivity of condition test by explicitly
delaying the main thread so that it doesn't race ahead of the workers.
Serhiy Storchaka [Mon, 11 Nov 2013 05:47:35 +0000 (07:47 +0200)]
Fixed compile error on Windows caused by arithmetic with void * pointers
(issue #16685).
Andrew Kuchling [Mon, 11 Nov 2013 02:46:02 +0000 (21:46 -0500)]
#
1097797 : add the original mapping file
Andrew Kuchling [Mon, 11 Nov 2013 02:45:24 +0000 (21:45 -0500)]
Fix some PEP8-formatting problems in the generated code
Jason R. Coombs [Mon, 11 Nov 2013 01:28:18 +0000 (20:28 -0500)]
Fix failing test incorrectly merged in
b1244046f37a
Jason R. Coombs [Sun, 10 Nov 2013 23:59:44 +0000 (18:59 -0500)]
Merge with 3.3 for Issue #19544 and Issue #6286. Merge is untested. I was unable to test due to
bab0cbf86835 .
Jason R. Coombs [Sun, 10 Nov 2013 23:50:10 +0000 (18:50 -0500)]
Issue #19544 and Issue #6286: Restore use of urllib over http allowing use of http_proxy for Distutils upload command, a feature accidentally lost in the rollback of distutils2.
Jason R. Coombs [Sun, 10 Nov 2013 23:21:49 +0000 (18:21 -0500)]
Merge with 3.3 for Issue #19544 and Issue #7457
Jason R. Coombs [Sun, 10 Nov 2013 23:15:03 +0000 (18:15 -0500)]
Issue 19544 and Issue #7457: Restore the read_pkg_file method to distutils.dist.DistributionMetadata accidentally removed in the undo of distutils2.
Serhiy Storchaka [Sun, 10 Nov 2013 19:44:36 +0000 (21:44 +0200)]
Issue #16685: Added support for any bytes-like objects in the audioop module.
Removed support for strings.
Jason R. Coombs [Sun, 10 Nov 2013 19:13:44 +0000 (14:13 -0500)]
Update Misc/NEWS for Issue #7171
Serhiy Storchaka [Sun, 10 Nov 2013 19:05:38 +0000 (21:05 +0200)]
Merge heads
Serhiy Storchaka [Sun, 10 Nov 2013 19:02:53 +0000 (21:02 +0200)]
Issue #19261: Added support for writing 24-bit samples in the sunau module.
Jason R. Coombs [Sun, 10 Nov 2013 19:02:40 +0000 (14:02 -0500)]
Merge
Jason R. Coombs [Sun, 10 Nov 2013 19:02:04 +0000 (14:02 -0500)]
Normalize whitespace
Andrew Kuchling [Sun, 10 Nov 2013 18:47:57 +0000 (13:47 -0500)]
Add news entry for #
1097797 ; whitespace cleanup
Andrew Kuchling [Sun, 10 Nov 2013 18:44:30 +0000 (13:44 -0500)]
#
1097797 : Add CP273 codec, and exercise it in the test suite
Andrew Kuchling [Sun, 10 Nov 2013 18:43:47 +0000 (13:43 -0500)]
Ignore two constructed directories in Tools/unicode
Jason R. Coombs [Sun, 10 Nov 2013 18:43:22 +0000 (13:43 -0500)]
Issue #7171: Update syntax to replace MAX in favor of Py_MAX (matching implementation for Unix).
Serhiy Storchaka [Sat, 9 Nov 2013 21:15:52 +0000 (23:15 +0200)]
Issue #
1575020 : Fixed support of 24-bit wave files on big-endian platforms.
Serhiy Storchaka [Sat, 9 Nov 2013 21:12:06 +0000 (23:12 +0200)]
Issue #
1575020 : Fixed support of 24-bit wave files on big-endian platforms.
Serhiy Storchaka [Sat, 9 Nov 2013 19:17:37 +0000 (21:17 +0200)]
Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085).
Serhiy Storchaka [Sat, 9 Nov 2013 19:16:19 +0000 (21:16 +0200)]
Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085).
Stefan Krah [Fri, 8 Nov 2013 20:08:46 +0000 (21:08 +0100)]
Null merge.
Stefan Krah [Fri, 8 Nov 2013 19:37:01 +0000 (20:37 +0100)]
Merge.
Brett Cannon [Fri, 8 Nov 2013 19:27:42 +0000 (14:27 -0500)]
remove dead import
Brett Cannon [Fri, 8 Nov 2013 19:25:37 +0000 (14:25 -0500)]
Issue #16803: test.test_importlib.source now tests frozen and source code
Stefan Krah [Fri, 8 Nov 2013 19:18:09 +0000 (20:18 +0100)]
Valgrind: suppress false positive in _PyOS_GetOpt (getopt.c:84) (Invalid read
of size 8: wcscmp (wcscmp.S:464))
Stefan Krah [Fri, 8 Nov 2013 19:18:09 +0000 (20:18 +0100)]
Valgrind: suppress false positive in _PyOS_GetOpt (getopt.c:84) (Invalid read
of size 8: wcscmp (wcscmp.S:464))
Charles-François Natali [Fri, 8 Nov 2013 18:56:59 +0000 (19:56 +0100)]
Issue #18923: Update subprocess to use the new selectors module.
Brett Cannon [Fri, 8 Nov 2013 18:35:34 +0000 (13:35 -0500)]
Simplify test.test_importlib.__main__
Brett Cannon [Fri, 8 Nov 2013 18:34:59 +0000 (13:34 -0500)]
Issue #16803: test.test_importlib.import_ now tests frozen and source code
Stefan Krah [Fri, 8 Nov 2013 17:05:02 +0000 (18:05 +0100)]
Move PyErr_NoMemory() closer to the failure.
Stefan Krah [Fri, 8 Nov 2013 17:05:02 +0000 (18:05 +0100)]
Move PyErr_NoMemory() closer to the failure.
Stefan Krah [Fri, 8 Nov 2013 16:48:58 +0000 (17:48 +0100)]
Change style to match the surrounding code (no early returns).
Stefan Krah [Fri, 8 Nov 2013 16:48:58 +0000 (17:48 +0100)]
Change style to match the surrounding code (no early returns).
Brett Cannon [Fri, 8 Nov 2013 16:10:41 +0000 (11:10 -0500)]
Issue #16803: test.test_importlib.frozen now runs both frozen and source code
Victor Stinner [Fri, 8 Nov 2013 13:07:11 +0000 (14:07 +0100)]
Issue #19512, #19526: Exclude the new _PyDict_DelItemId() function from the
stable ABI
Victor Stinner [Thu, 7 Nov 2013 23:50:58 +0000 (00:50 +0100)]
Issue #19437: Fix datetime_subtract(), handle new_delta() failure
Victor Stinner [Thu, 7 Nov 2013 23:29:41 +0000 (00:29 +0100)]
Issue #19437: Fix _io._IOBase.close(), handle _PyObject_SetAttrId() failure
Victor Stinner [Thu, 7 Nov 2013 22:56:10 +0000 (23:56 +0100)]
Issue #19437: Fix fsconvert_strdup(), raise a MemoryError on PyMem_Malloc()
failure
Victor Stinner [Thu, 7 Nov 2013 22:12:23 +0000 (23:12 +0100)]
_Py_normalize_encoding(): explain how the value 6 was computed
Victor Stinner [Thu, 7 Nov 2013 22:07:29 +0000 (23:07 +0100)]
Issue #19512, #19515: remove shared identifiers, move identifiers where they
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
Victor Stinner [Thu, 7 Nov 2013 21:22:39 +0000 (22:22 +0100)]
frameobject.c: Use an identifer instead of creating explicitly an interned
string for "__builtins__" literal string
Victor Stinner [Thu, 7 Nov 2013 21:05:48 +0000 (22:05 +0100)]
C API doc: try to group concrete objects
Victor Stinner [Thu, 7 Nov 2013 20:50:55 +0000 (21:50 +0100)]
Issue #19514: Add Andrei Dorian Duma to Misc/ACKS for changeset
4a09cc62419b
Victor Stinner [Thu, 7 Nov 2013 12:33:36 +0000 (13:33 +0100)]
Fix _Py_normalize_encoding(): ensure that buffer is big enough to store "utf-8"
if the input string is NULL
Martin v. Löwis [Thu, 7 Nov 2013 17:46:53 +0000 (18:46 +0100)]
Issue #19514: Deduplicate some _Py_IDENTIFIER declarations.
Patch by Andrei Dorian Duma.
Guido van Rossum [Thu, 7 Nov 2013 17:25:36 +0000 (09:25 -0800)]
Remove redundant test_selectors.py from test_asyncio.
Ezio Melotti [Thu, 7 Nov 2013 17:18:34 +0000 (19:18 +0200)]
#17080: improve error message of float/complex when the wrong type is passed.
Guido van Rossum [Thu, 7 Nov 2013 16:39:28 +0000 (08:39 -0800)]
Optimize BaseSelector.modify(). Patch by Arnaud Faure.
Ezio Melotti [Thu, 7 Nov 2013 16:35:27 +0000 (18:35 +0200)]
#19480: merge with 3.3.
Ezio Melotti [Thu, 7 Nov 2013 16:33:24 +0000 (18:33 +0200)]
#19480: HTMLParser now accepts all valid start-tag names as defined by the HTML5 standard.
R David Murray [Thu, 7 Nov 2013 15:51:41 +0000 (10:51 -0500)]
Merge #18985: Improve fcntl documentation.
R David Murray [Thu, 7 Nov 2013 15:51:07 +0000 (10:51 -0500)]
#18985: Improve fcntl documentation.
Original patch by Vajrasky Kok, further improved (I hope) by me.
Victor Stinner [Thu, 7 Nov 2013 11:37:56 +0000 (12:37 +0100)]
print_error_text() doesn't encode the filename anymore
Use aslo PyUnicode_FromFormat() to format the line so only one call to
PyFile_WriteObject() is needed. tb_displayline() of Python/traceback.c has
similar implementation.
Guido van Rossum [Thu, 7 Nov 2013 04:25:50 +0000 (20:25 -0800)]
asyncio: Add close() back to Unix selector event loop, to remove all signal handlers. Should fix buildbot issues.
Victor Stinner [Wed, 6 Nov 2013 23:53:56 +0000 (00:53 +0100)]
remove an outdated comment
The comment is meaningless since changeset
4e985a96a612 .
Victor Stinner [Wed, 6 Nov 2013 23:43:05 +0000 (00:43 +0100)]
Issue #19512: Use the new _PyId_builtins identifier
Victor Stinner [Wed, 6 Nov 2013 23:46:04 +0000 (00:46 +0100)]
Issue #19512: add _PyUnicode_CompareWithId() function
_PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString()
when both strings are equal and interned.
Add also _PyId_builtins identifier for "builtins" common string.
Victor Stinner [Wed, 6 Nov 2013 23:12:30 +0000 (00:12 +0100)]
print_exception(): don't encode the module name to UTF-8
Replace _PyUnicode_AsString()+strcmp() with PyUnicode_CompareWithASCIIString().
Victor Stinner [Wed, 6 Nov 2013 23:01:51 +0000 (00:01 +0100)]
Issue #19512: builtin print() function uses an identifier instead of literal
string "flush" to call the flush method
Victor Stinner [Wed, 6 Nov 2013 22:52:55 +0000 (23:52 +0100)]
Issue #19512: _count_elements() of _collections reuses PyId_get identifier
instead of literal "get" string
Victor Stinner [Wed, 6 Nov 2013 22:50:10 +0000 (23:50 +0100)]
Issue #19512: fileio_init() reuses PyId_name identifier instead of "name"
literal string
Victor Stinner [Wed, 6 Nov 2013 21:46:51 +0000 (22:46 +0100)]
Issue #19512: __build_class() builtin now uses an identifier for the "metaclass" string
Victor Stinner [Wed, 6 Nov 2013 21:41:44 +0000 (22:41 +0100)]
Issue #19512: add some common identifiers to only create common strings once,
instead of creating temporary Unicode string objects
Add also more identifiers in pythonrun.c to avoid temporary Unicode string
objets for the interactive interpreter.
Victor Stinner [Wed, 6 Nov 2013 21:40:41 +0000 (22:40 +0100)]
Issue #19512: pickle now uses an identifier to only create the Unicode string
"modules" once
Victor Stinner [Wed, 6 Nov 2013 21:38:37 +0000 (22:38 +0100)]
Issue #19512: PRINT_EXPR bytecode now uses an identifier to get sys.displayhook
to only create the "displayhook" string once
Victor Stinner [Wed, 6 Nov 2013 21:36:40 +0000 (22:36 +0100)]
Issue #19512: Add _PySys_GetObjectId() and _PySys_SetObjectId() functions
Victor Stinner [Wed, 6 Nov 2013 18:03:11 +0000 (19:03 +0100)]
Issue #19512: eval() and exec() now use an identifier for "__builtins__" string
Victor Stinner [Wed, 6 Nov 2013 17:59:18 +0000 (18:59 +0100)]
Issue #19512: type_abstractmethods() and type_set_abstractmethods() now use an
identifier for the "__abstractmethods__" string
Victor Stinner [Wed, 6 Nov 2013 17:58:22 +0000 (18:58 +0100)]
Issue #19512: Add a new _PyDict_DelItemId() function, similar to
PyDict_DelItemString() but using an identifier for the key
Victor Stinner [Wed, 6 Nov 2013 17:57:29 +0000 (18:57 +0100)]
Issue #19512: Py_ReprEnter() and Py_ReprLeave() now use an identifier for the
"Py_Repr" dictionary key
Victor Stinner [Wed, 6 Nov 2013 17:41:07 +0000 (18:41 +0100)]
Issue #19512: Add PyRun_InteractiveOneObject() function
Only decode the filename once. PyRun_InteractiveOneObject() uses an identifier
for "<string>" string, so the byte string is only decoded once.
Victor Stinner [Wed, 6 Nov 2013 17:28:21 +0000 (18:28 +0100)]
Issue #19512: _print_total_refs() now uses an identifier to get "showrefcount"
key from sys._xoptions
Victor Stinner [Wed, 6 Nov 2013 17:27:13 +0000 (18:27 +0100)]
Issue #19512: sys_displayhook() now uses an identifier for "builtins"
dictionary key and only decodes "\n" string once to write a newline.
So "builtins" and "\n" are only decoded once from UTF-8, at the first call.
Christian Heimes [Wed, 6 Nov 2013 16:25:17 +0000 (17:25 +0100)]
Issue #18582: fix memory leak in pbkdf2 code
Nick Coghlan [Wed, 6 Nov 2013 12:17:39 +0000 (22:17 +1000)]
Remove incorrect comment from dis tests
Nick Coghlan [Wed, 6 Nov 2013 12:12:07 +0000 (22:12 +1000)]
Fix typo in updated dis docs
Nick Coghlan [Wed, 6 Nov 2013 12:08:36 +0000 (22:08 +1000)]
Close #19378: address flaws in the new dis module APIs
- confusing line_offset parameter -> first_line parameter
- systematically test and fix new file parameter
- remove redundant Bytecode.show_info() API
- rename Bytecode.display_code() to Bytecode.dis() and have it
return the multi-line string rather than printing it directly
- eliminated some not-so-helpful helpers from the bytecode_helper
test support module
Also fixed a longstanding defect (worked around in the test suite)
where lines emitted by the dis module could include trailing white
space. That no longer happens, allowing the formatting tests to be
simplified to use plain string comparisons.