]>
granicus.if.org Git - python/log
Serhiy Storchaka [Sat, 10 Oct 2015 19:42:18 +0000 (22:42 +0300)]
Issue #24164: Objects that need calling ``__new__`` with keyword arguments,
can now be pickled using pickle protocols older than protocol version 4.
Serhiy Storchaka [Sat, 10 Oct 2015 17:27:52 +0000 (20:27 +0300)]
Null merge
Serhiy Storchaka [Sat, 10 Oct 2015 17:27:28 +0000 (20:27 +0300)]
Null merge
Serhiy Storchaka [Sat, 10 Oct 2015 17:26:16 +0000 (20:26 +0300)]
Correct Misc/NEWS.
Serhiy Storchaka [Sat, 10 Oct 2015 17:11:13 +0000 (20:11 +0300)]
Issue #25365: test_pickle now works in threads disabled builds.
Serhiy Storchaka [Sat, 10 Oct 2015 17:10:54 +0000 (20:10 +0300)]
Issue #25365: test_pickle now works in threads disabled builds.
Serhiy Storchaka [Sat, 10 Oct 2015 17:10:07 +0000 (20:10 +0300)]
Issue #25365: test_pickle now works in threads disabled builds.
Serhiy Storchaka [Sat, 10 Oct 2015 16:44:23 +0000 (19:44 +0300)]
Issue #25364: zipfile now works in threads disabled builds.
Serhiy Storchaka [Sat, 10 Oct 2015 16:43:32 +0000 (19:43 +0300)]
Issue #25364: zipfile now works in threads disabled builds.
Martin Panter [Sat, 10 Oct 2015 11:06:05 +0000 (11:06 +0000)]
Issue #25322: Merge contextlib.suppress test fix from 3.5
Martin Panter [Sat, 10 Oct 2015 11:05:47 +0000 (11:05 +0000)]
Issue #25322: Merge contextlib.suppress test fix from 3.4 into 3.5
Martin Panter [Sat, 10 Oct 2015 11:04:44 +0000 (11:04 +0000)]
Issue #25322: Fix test for nested contextlib.suppress
Martin Panter [Sat, 10 Oct 2015 10:45:00 +0000 (10:45 +0000)]
Issue #25161: Merge full stops from 3.5
Martin Panter [Sat, 10 Oct 2015 10:44:25 +0000 (10:44 +0000)]
Issue #25161: Merge full stops from 3.4 into 3.5
Martin Panter [Sat, 10 Oct 2015 10:36:22 +0000 (10:36 +0000)]
Issue #25161: Add full stops in documentation; patch by Takase Arihiro
Martin Panter [Sat, 10 Oct 2015 10:20:25 +0000 (10:20 +0000)]
Issue #22413: Merge StringIO doc from 3.5
Martin Panter [Sat, 10 Oct 2015 10:17:57 +0000 (10:17 +0000)]
Issue #22413: Remove comment made out of date by Argument Clinic
Martin Panter [Sat, 10 Oct 2015 10:15:21 +0000 (10:15 +0000)]
Issue #22413: Merge StringIO doc from 3.4 into 3.5
Martin Panter [Sat, 10 Oct 2015 05:29:19 +0000 (05:29 +0000)]
Issue #24402: Merge potential test fix from 3.5
Martin Panter [Sat, 10 Oct 2015 05:28:17 +0000 (05:28 +0000)]
Issue #24402: Merge potential test fix from 3.4 into 3.5
Martin Panter [Sat, 10 Oct 2015 05:27:15 +0000 (05:27 +0000)]
Issue #24402: Factor out PtyTests.run_child() in input() tests
This reuses existing code to hopefully make the new test_input_no_stdout_
fileno() test work. It is hanging Free BSD 9 and OS X Tiger buildbots, and I
don't know why.
Martin Panter [Sat, 10 Oct 2015 03:01:20 +0000 (03:01 +0000)]
Issue #22413: Document newline effect on StringIO initializer and getvalue
Also add to comment in the C code.
Martin Panter [Sat, 10 Oct 2015 02:09:41 +0000 (02:09 +0000)]
Issue #24402: Merge input() fix from 3.5
Martin Panter [Sat, 10 Oct 2015 01:55:23 +0000 (01:55 +0000)]
Issue #24402: Merge input() fix from 3.4 into 3.5
Martin Panter [Sat, 10 Oct 2015 01:25:38 +0000 (01:25 +0000)]
Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by Eryksun
Also factored out some test cases into a new PtyTests class.
Vinay Sajip [Fri, 9 Oct 2015 23:54:18 +0000 (00:54 +0100)]
Closes #25344: Merged fix from 3.5.
Vinay Sajip [Fri, 9 Oct 2015 23:53:37 +0000 (00:53 +0100)]
Closes #25344: Merged fix from 3.4.
Vinay Sajip [Fri, 9 Oct 2015 23:52:35 +0000 (00:52 +0100)]
Closes #25344: Added cookbook recipe to show buffering of logging events.
Brett Cannon [Fri, 9 Oct 2015 22:10:10 +0000 (15:10 -0700)]
Merge for issue #25099
Brett Cannon [Fri, 9 Oct 2015 22:09:43 +0000 (15:09 -0700)]
Issue #25099: Skip relevant tests in test_compileall when an entry on
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
(grafted from
34bbd537b3e688dfbb6498e9083445a6a72fc4b1 )
Brett Cannon [Fri, 9 Oct 2015 22:09:43 +0000 (15:09 -0700)]
Issue #25099: Skip relevant tests in test_compileall when an entry on
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
Victor Stinner [Fri, 9 Oct 2015 20:50:36 +0000 (22:50 +0200)]
Issue #25349: Add fast path for b'%c' % int
Optimize also %% formater.
Victor Stinner [Fri, 9 Oct 2015 20:43:24 +0000 (22:43 +0200)]
Issue #25349: Optimize bytes % int
Optimize bytes.__mod__(args) for integere formats: %d (%i, %u), %o, %x and %X.
_PyBytesWriter is now used to format directly the integer into the writer
buffer, instead of using a temporary bytes object.
Formatting is between 30% and 50% faster on a microbenchmark.
R David Murray [Fri, 9 Oct 2015 14:20:58 +0000 (10:20 -0400)]
Merge #25328: add missing raise keyword in decode_data+SMTPUTF8 check.
R David Murray [Fri, 9 Oct 2015 14:19:33 +0000 (10:19 -0400)]
#25328: add missing raise keyword in decode_data+SMTPUTF8 check.
This is a relatively benign bug, since having both be true was correctly
rejected at in SMTPServer even before this patch.
Patch by Xiang Zhang.
Victor Stinner [Fri, 9 Oct 2015 11:10:05 +0000 (13:10 +0200)]
Optimize error handlers of ASCII and Latin1 encoders when the replacement
string is pure ASCII: use _PyBytesWriter_WriteBytes(), don't check individual
character.
Cleanup unicode_encode_ucs1():
* Rename repunicode to rep
* Clear rep object on error
* Factorize code between bytes and unicode path
Victor Stinner [Fri, 9 Oct 2015 10:57:22 +0000 (12:57 +0200)]
Add _PyBytesWriter_WriteBytes() to factorize the code
Victor Stinner [Fri, 9 Oct 2015 10:38:53 +0000 (12:38 +0200)]
_PyBytesWriter: simplify code to avoid "prealloc" parameters
Substract preallocate bytes from min_size before calling
_PyBytesWriter_Prepare().
Victor Stinner [Fri, 9 Oct 2015 10:37:03 +0000 (12:37 +0200)]
_PyBytesWriter: rename size attribute to min_size
Victor Stinner [Fri, 9 Oct 2015 09:48:06 +0000 (11:48 +0200)]
Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API
* Thanks to the _PyBytesWriter API, output smaller than 512 bytes are allocated
on the stack and so avoid calling _PyBytes_Resize(). Because of that, change
the default buffer size to fmtcnt instead of fmtcnt+100.
* Rely on _PyBytesWriter algorithm to overallocate the buffer instead of using
a custom code. For example, _PyBytesWriter uses a different overallocation
factor (25% or 50%) depending on the platform to get best performances.
* Disable overallocation for the last write.
* Replace C loops to fill characters with memset()
* Add also many comments to _PyBytes_Format()
* Remove unused FORMATBUFLEN constant
* Avoid the creation of a temporary bytes object when formatting a floating
point number (when no custom formatting option is used)
* Fix also reference leaks on error handling
* Use Py_MEMCPY() to copy bytes between two formatters (%)
Raymond Hettinger [Fri, 9 Oct 2015 05:34:08 +0000 (01:34 -0400)]
Hoist constant expression out of the inner loop.
Raymond Hettinger [Fri, 9 Oct 2015 04:42:47 +0000 (00:42 -0400)]
Make comparison more consistent
Raymond Hettinger [Fri, 9 Oct 2015 04:03:51 +0000 (00:03 -0400)]
Issue #25298: Add lock and rlock weakref tests (Contributed by Nir Soffer).
Victor Stinner [Fri, 9 Oct 2015 01:38:24 +0000 (03:38 +0200)]
Issue #25318: cleanup code _PyBytesWriter
Rename "stack buffer" to "small buffer".
Add also an assertion in _PyBytesWriter_GetPos().
Victor Stinner [Fri, 9 Oct 2015 01:37:11 +0000 (03:37 +0200)]
Issue #25318: Fix backslashreplace()
Fix code to estimate the needed space.
Victor Stinner [Fri, 9 Oct 2015 01:17:30 +0000 (03:17 +0200)]
Issue #25318: Avoid sprintf() in backslashreplace()
Rewrite backslashreplace() to be closer to PyCodec_BackslashReplaceErrors().
Add also unit tests for non-BMP characters.
Victor Stinner [Fri, 9 Oct 2015 00:52:16 +0000 (02:52 +0200)]
Issue #25318: Fix compilation error
Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG".
Victor Stinner [Thu, 8 Oct 2015 23:53:21 +0000 (01:53 +0200)]
Issue #25318: Move _PyBytesWriter to bytesobject.c
Declare also the private API in bytesobject.h.
Victor Stinner [Thu, 8 Oct 2015 23:39:28 +0000 (01:39 +0200)]
Optimize backslashreplace error handler
Issue #25318: Optimize backslashreplace and xmlcharrefreplace error handlers in
UTF-8 encoder. Optimize also backslashreplace error handler for ASCII and
Latin1 encoders.
Use the new _PyBytesWriter API to optimize these error handlers for the
encoders. It avoids to create an exception and call the slow implementation of
the error handler.
Victor Stinner [Thu, 8 Oct 2015 22:33:49 +0000 (00:33 +0200)]
Issue #25318: Add _PyBytesWriter API
Add a new private API to optimize Unicode encoders. It uses a small buffer
allocated on the stack and supports overallocation.
Use _PyBytesWriter API for UCS1 (ASCII and Latin1) and UTF-8 encoders. Enable
overallocation for the UTF-8 encoder with error handlers.
unicode_encode_ucs1(): initialize collend to collstart+1 to not check the
current character twice, we already know that it is not ASCII.
Steve Dower [Thu, 8 Oct 2015 18:34:07 +0000 (11:34 -0700)]
Fix missing import in libregrtest.
Steve Dower [Thu, 8 Oct 2015 17:00:55 +0000 (10:00 -0700)]
Merge from 3.5
Steve Dower [Thu, 8 Oct 2015 16:55:49 +0000 (09:55 -0700)]
Issue #25089: Adds logging to installer for case where launcher is not selected on upgrade.
Steve Dower [Thu, 8 Oct 2015 16:06:39 +0000 (09:06 -0700)]
Merge from 3.5
Steve Dower [Thu, 8 Oct 2015 16:06:17 +0000 (09:06 -0700)]
Removes deprecated -n option from buildbot script.
Steve Dower [Thu, 8 Oct 2015 16:05:36 +0000 (09:05 -0700)]
Issue #23919: Prevents assert dialogs appearing in the test suite.
Steve Dower [Thu, 8 Oct 2015 15:56:06 +0000 (08:56 -0700)]
Issue #23919: Prevents assert dialogs appearing in the test suite.
Berker Peksag [Thu, 8 Oct 2015 10:58:49 +0000 (13:58 +0300)]
Sort module names in whatsnew/3.6.rst
Berker Peksag [Thu, 8 Oct 2015 09:27:06 +0000 (12:27 +0300)]
Issue #16099: RobotFileParser now supports Crawl-delay and Request-rate
extensions.
Patch by Nikolay Bogoychev.
Berker Peksag [Thu, 8 Oct 2015 03:34:57 +0000 (06:34 +0300)]
Issue #16802: Document fileno parameter of socket.socket()
Patch by Henrik Heimbuerger and Bar Harel.
Berker Peksag [Thu, 8 Oct 2015 03:34:31 +0000 (06:34 +0300)]
Issue #16802: Document fileno parameter of socket.socket()
Patch by Henrik Heimbuerger and Bar Harel.
Berker Peksag [Thu, 8 Oct 2015 03:34:01 +0000 (06:34 +0300)]
Issue #16802: Document fileno parameter of socket.socket()
Patch by Henrik Heimbuerger and Bar Harel.
Martin Panter [Wed, 7 Oct 2015 11:15:15 +0000 (11:15 +0000)]
One more typo in a comment
Martin Panter [Wed, 7 Oct 2015 11:13:55 +0000 (11:13 +0000)]
Merge typo fixes from 3.5
Martin Panter [Wed, 7 Oct 2015 11:03:53 +0000 (11:03 +0000)]
More typos in 3.5 documentation and comments
Martin Panter [Wed, 7 Oct 2015 11:01:47 +0000 (11:01 +0000)]
Merge typo fixes from 3.4 into 3.5
Martin Panter [Wed, 7 Oct 2015 10:26:23 +0000 (10:26 +0000)]
Various minor typos in documentation and comments
Martin Panter [Wed, 7 Oct 2015 10:04:49 +0000 (10:04 +0000)]
Issue #25286: Merge dictionary view glossary from 3.5
Martin Panter [Wed, 7 Oct 2015 10:03:20 +0000 (10:03 +0000)]
Issue #25286: Update dictionary view link; patch by Akira Li
Martin Panter [Wed, 7 Oct 2015 10:01:04 +0000 (10:01 +0000)]
Issue #25286: Merge dictionary view glossary from 3.4 into 3.5
Martin Panter [Wed, 7 Oct 2015 09:56:46 +0000 (09:56 +0000)]
Issue #25286: Dictionary views are not sequences
Also change glossary heading from view
Berker Peksag [Wed, 7 Oct 2015 04:54:23 +0000 (07:54 +0300)]
Add a versionadded directive for reopenIfNeeded()
Benjamin Peterson [Wed, 7 Oct 2015 04:17:02 +0000 (21:17 -0700)]
make configure executable
Raymond Hettinger [Wed, 7 Oct 2015 03:08:11 +0000 (23:08 -0400)]
merge
Raymond Hettinger [Wed, 7 Oct 2015 03:06:17 +0000 (23:06 -0400)]
Backport early-out
91259f061cfb to reduce the cost of
bb1a2944bcb6
Benjamin Peterson [Wed, 7 Oct 2015 02:42:46 +0000 (19:42 -0700)]
merge 3.5 (closes #24806)
Benjamin Peterson [Wed, 7 Oct 2015 02:42:02 +0000 (19:42 -0700)]
merge 3.4 (#24806)
Benjamin Peterson [Wed, 7 Oct 2015 02:36:54 +0000 (19:36 -0700)]
prevent unacceptable bases from becoming bases through multiple inheritance (#24806)
Zachary Ware [Tue, 6 Oct 2015 20:29:09 +0000 (15:29 -0500)]
Issue #25097: Merge with 3.5
Zachary Ware [Tue, 6 Oct 2015 20:28:56 +0000 (15:28 -0500)]
Issue #25097: Merge with 3.4
Zachary Ware [Tue, 6 Oct 2015 20:28:43 +0000 (15:28 -0500)]
Issue #25097: Re-raise any other pywin32 error
Zachary Ware [Tue, 6 Oct 2015 20:23:16 +0000 (15:23 -0500)]
Issue #25097: Merge with 3.5
Zachary Ware [Tue, 6 Oct 2015 20:22:41 +0000 (15:22 -0500)]
Issue #25097: Merge with 3.4
Zachary Ware [Tue, 6 Oct 2015 20:22:13 +0000 (15:22 -0500)]
Issue #25097: fix Windows error number access
Alexander Belopolsky [Tue, 6 Oct 2015 17:29:56 +0000 (13:29 -0400)]
Closes issue #12006: Add ISO 8601 year, week, and day directives to strptime.
This commit adds %G, %V, and %u directives to strptime. Thanks Ashley Anderson
for the implementation.
Serhiy Storchaka [Tue, 6 Oct 2015 15:52:52 +0000 (18:52 +0300)]
Merge with 3.5.
Serhiy Storchaka [Tue, 6 Oct 2015 15:47:26 +0000 (18:47 +0300)]
Null merge
Serhiy Storchaka [Tue, 6 Oct 2015 15:40:09 +0000 (18:40 +0300)]
Merge heads
Serhiy Storchaka [Tue, 6 Oct 2015 15:39:58 +0000 (18:39 +0300)]
Merge heads
Serhiy Storchaka [Tue, 6 Oct 2015 15:38:25 +0000 (18:38 +0300)]
Merge heads
Guido van Rossum [Tue, 6 Oct 2015 15:25:21 +0000 (08:25 -0700)]
Issue #23972: Fix tests for Windows and Debian. (Merge 3.5->3.6)
Serhiy Storchaka [Tue, 6 Oct 2015 15:24:46 +0000 (18:24 +0300)]
Issue #25317: Converted doctests in test_tokenize to unittests.
Made test_tokenize discoverable.
Guido van Rossum [Tue, 6 Oct 2015 15:24:44 +0000 (08:24 -0700)]
Issue #23972: Fix tests for Windows and Debian. (Merge 3.4->3.5)
Guido van Rossum [Tue, 6 Oct 2015 15:24:10 +0000 (08:24 -0700)]
Issue #23972: Fix tests for Windows and Debian.
Serhiy Storchaka [Tue, 6 Oct 2015 15:23:12 +0000 (18:23 +0300)]
Issue #25317: Converted doctests in test_tokenize to unittests.
Made test_tokenize discoverable.
Serhiy Storchaka [Tue, 6 Oct 2015 15:16:28 +0000 (18:16 +0300)]
Issue #25317: Converted doctests in test_tokenize to unittests.
Made test_tokenize discoverable.
Benjamin Peterson [Tue, 6 Oct 2015 05:01:29 +0000 (22:01 -0700)]
merge 3.5 (#25319)
Benjamin Peterson [Tue, 6 Oct 2015 05:00:33 +0000 (22:00 -0700)]
merge 3.4 (#25319)
Benjamin Peterson [Tue, 6 Oct 2015 04:56:22 +0000 (21:56 -0700)]
reinitialize an Event's Condition with a regular lock (closes #25319)
Raymond Hettinger [Tue, 6 Oct 2015 02:52:37 +0000 (22:52 -0400)]
Eliminate unnecessary test