summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22413: Merge StringIO doc from 3.5Martin Panter2015-10-103-9/+20
|\
| * Issue #22413: Remove comment made out of date by Argument ClinicMartin Panter2015-10-101-4/+2
| |
| * Issue #22413: Merge StringIO doc from 3.4 into 3.5Martin Panter2015-10-102-5/+18
| |\
| | * Issue #22413: Document newline effect on StringIO initializer and getvalueMartin Panter2015-10-102-5/+18
| | | | | | | | | | | | Also add to comment in the C code.
* | | Issue #24402: Merge potential test fix from 3.5Martin Panter2015-10-101-45/+48
|\ \ \ | |/ /
| * | Issue #24402: Merge potential test fix from 3.4 into 3.5Martin Panter2015-10-101-45/+48
| |\ \ | | |/
| | * Issue #24402: Factor out PtyTests.run_child() in input() testsMartin Panter2015-10-101-45/+48
| | | | | | | | | | | | | | | | | | 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.
* | | Issue #24402: Merge input() fix from 3.5Martin Panter2015-10-103-77/+119
|\ \ \ | |/ /
| * | Issue #24402: Merge input() fix from 3.4 into 3.5Martin Panter2015-10-103-77/+116
| |\ \ | | |/
| | * Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by EryksunMartin Panter2015-10-103-77/+116
| | | | | | | | | | | | Also factored out some test cases into a new PtyTests class.
* | | Closes #25344: Merged fix from 3.5.Vinay Sajip2015-10-091-0/+137
|\ \ \ | |/ /
| * | Closes #25344: Merged fix from 3.4.Vinay Sajip2015-10-091-0/+137
| |\ \ | | |/
| | * Closes #25344: Added cookbook recipe to show buffering of logging events.Vinay Sajip2015-10-091-0/+137
| | |
* | | Merge for issue #25099Brett Cannon2015-10-092-4/+35
|\ \ \ | |/ /
| * | Issue #25099: Skip relevant tests in test_compileall when an entry onBrett Cannon2015-10-092-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Issue #25349: Add fast path for b'%c' % intVictor Stinner2015-10-092-10/+17
| | | | | | | | | | | | Optimize also %% formater.
* | | Issue #25349: Optimize bytes % intVictor Stinner2015-10-093-27/+136
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge #25328: add missing raise keyword in decode_data+SMTPUTF8 check.R David Murray2015-10-093-2/+11
|\ \ \ | |/ /
| * | #25328: add missing raise keyword in decode_data+SMTPUTF8 check.R David Murray2015-10-093-2/+11
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Optimize error handlers of ASCII and Latin1 encoders when the replacementVictor Stinner2015-10-092-43/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add _PyBytesWriter_WriteBytes() to factorize the codeVictor Stinner2015-10-094-16/+35
| | |
* | | _PyBytesWriter: simplify code to avoid "prealloc" parametersVictor Stinner2015-10-093-47/+47
| | | | | | | | | | | | | | | Substract preallocate bytes from min_size before calling _PyBytesWriter_Prepare().
* | | _PyBytesWriter: rename size attribute to min_sizeVictor Stinner2015-10-092-9/+10
| | |
* | | Issue #25349: Optimize bytes % args using the new private _PyBytesWriter APIVictor Stinner2015-10-092-59/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 (%)
* | | Hoist constant expression out of the inner loop.Raymond Hettinger2015-10-091-3/+3
| | |
* | | Make comparison more consistentRaymond Hettinger2015-10-091-1/+1
| | |
* | | Issue #25298: Add lock and rlock weakref tests (Contributed by Nir Soffer).Raymond Hettinger2015-10-091-0/+12
| | |
* | | Issue #25318: cleanup code _PyBytesWriterVictor Stinner2015-10-092-19/+19
| | | | | | | | | | | | | | | | | | Rename "stack buffer" to "small buffer". Add also an assertion in _PyBytesWriter_GetPos().
* | | Issue #25318: Fix backslashreplace()Victor Stinner2015-10-091-1/+1
| | | | | | | | | | | | Fix code to estimate the needed space.
* | | Issue #25318: Avoid sprintf() in backslashreplace()Victor Stinner2015-10-092-9/+22
| | | | | | | | | | | | | | | | | | Rewrite backslashreplace() to be closer to PyCodec_BackslashReplaceErrors(). Add also unit tests for non-BMP characters.
* | | Issue #25318: Fix compilation errorVictor Stinner2015-10-091-1/+1
| | | | | | | | | | | | Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG".
* | | Issue #25318: Move _PyBytesWriter to bytesobject.cVictor Stinner2015-10-083-210/+245
| | | | | | | | | | | | Declare also the private API in bytesobject.h.
* | | Optimize backslashreplace error handlerVictor Stinner2015-10-082-51/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Issue #25318: Add _PyBytesWriter APIVictor Stinner2015-10-083-133/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Fix missing import in libregrtest.Steve Dower2015-10-081-0/+1
| | |
* | | Merge from 3.5Steve Dower2015-10-082-0/+10
|\ \ \ | |/ /
| * | Issue #25089: Adds logging to installer for case where launcher is not ↵Steve Dower2015-10-082-0/+10
| | | | | | | | | | | | selected on upgrade.
* | | Merge from 3.5Steve Dower2015-10-082-1/+3
|\ \ \ | |/ /
| * | Removes deprecated -n option from buildbot script.Steve Dower2015-10-081-1/+1
| | |
| * | Issue #23919: Prevents assert dialogs appearing in the test suite.Steve Dower2015-10-082-2/+13
| | |
* | | Issue #23919: Prevents assert dialogs appearing in the test suite.Steve Dower2015-10-082-3/+13
| | |
* | | Sort module names in whatsnew/3.6.rstBerker Peksag2015-10-081-11/+12
| | |
* | | Issue #16099: RobotFileParser now supports Crawl-delay and Request-rateBerker Peksag2015-10-086-26/+147
| | | | | | | | | | | | | | | | | | extensions. Patch by Nikolay Bogoychev.
* | | Issue #16802: Document fileno parameter of socket.socket()Berker Peksag2015-10-081-1/+5
|\ \ \ | |/ / | | | | | | Patch by Henrik Heimbuerger and Bar Harel.
| * | Issue #16802: Document fileno parameter of socket.socket()Berker Peksag2015-10-081-1/+5
| |\ \ | | |/ | | | | | | Patch by Henrik Heimbuerger and Bar Harel.
| | * Issue #16802: Document fileno parameter of socket.socket()Berker Peksag2015-10-081-1/+5
| | | | | | | | | | | | Patch by Henrik Heimbuerger and Bar Harel.
* | | One more typo in a commentMartin Panter2015-10-071-1/+1
| | |
* | | Merge typo fixes from 3.5Martin Panter2015-10-0710-12/+12
|\ \ \ | |/ /
| * | More typos in 3.5 documentation and commentsMartin Panter2015-10-074-6/+6
| | |
| * | Merge typo fixes from 3.4 into 3.5Martin Panter2015-10-079-9/+9
| |\ \ | | |/