summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22687: Fixed some corner cases in breaking words in tetxtwrap.Serhiy Storchaka2015-03-242-4/+35
| | | | Got rid of quadratic complexity in breaking long words.
* Issue #20289: The copy module now uses pickle protocol 4 (PEP 3154) andSerhiy Storchaka2015-03-242-2/+72
| | | | | supports copying of instances of classes whose __new__ method takes keyword-only arguments.
* Issue #23571: Enhance _Py_CheckFunctionResult()Victor Stinner2015-03-241-4/+4
| | | | | | | | | Too bad, sometimes Py_FatalError() is unable to write the exception into sys.stderr (on "AMD64 OpenIndiana 3.x" buildbot, the buildbot was probably out of memory). Call Py_FatalError() with a different message for the two cases (result+error, or no result and no error).
* Issue #23571: Update test_capiVictor Stinner2015-03-241-2/+23
|
* Issue #23688: Added support of arbitrary bytes-like objects and avoidedSerhiy Storchaka2015-03-232-8/+48
| | | | | unnecessary copying of memoryview in gzip.GzipFile.write(). Original patch by Wolfgang Maier.
* Issue #23252: Added support for writing ZIP files to unseekable streams.Serhiy Storchaka2015-03-222-34/+108
|
* Merge: #23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.R David Murray2015-03-221-5/+6
|\
| * #23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.R David Murray2015-03-221-5/+6
| |
* | Merge: #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.R David Murray2015-03-222-28/+78
|\ \ | |/
| * #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.R David Murray2015-03-222-28/+78
| | | | | | | | | | | | | | | | Some http servers will reject PUT, POST, and PATCH requests if they do not have a Content-Length header. Patch by James Rutherford, with additional cleaning up of the 'request' documentation by me.
* | Merge: #23700: fix/improve commentR David Murray2015-03-221-2/+4
|\ \ | |/
| * #23700: fix/improve commentR David Murray2015-03-221-2/+4
| |
* | #23657 Don't explicitly do an isinstance check for str in zipappPaul Moore2015-03-222-9/+129
| | | | | | | | | | As a result, explicitly support pathlib.Path objects as arguments. Also added tests for the CLI interface.
* | Issue #22289: merge from 3.4Ned Deily2015-03-221-1/+2
|\ \ | |/
| * Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.Ned Deily2015-03-221-1/+2
| |
* | Issue #23571: Fix test_capiVictor Stinner2015-03-211-2/+2
| |
* | Issue #23571: _Py_CheckFunctionResult() now gives the name of the functionVictor Stinner2015-03-211-0/+44
| | | | | | | | | | | | | | | | | | | | | | which returned an invalid result (result+error or no result without error) in the exception message. Add also unit test to check that the exception contains the name of the function. Special case: the final _PyEval_EvalFrameEx() check doesn't mention the function since it didn't execute a single function but a whole frame.
* | Issue 23704: Add index(), copy(), and insert() to deques. Register deques ↵Raymond Hettinger2015-03-213-1/+61
| | | | | | | | as a MutableSequence.
* | Issue #22351: The nntplib.NNTP constructor no longer leaves the connectionSerhiy Storchaka2015-03-212-15/+123
|\ \ | |/ | | | | | | and socket open until the garbage collector cleans them up. Patch by Martin Panter.
| * Issue #22351: The nntplib.NNTP constructor no longer leaves the connectionSerhiy Storchaka2015-03-212-15/+123
| | | | | | | | | | and socket open until the garbage collector cleans them up. Patch by Martin Panter.
* | Issue 23705: Improve the performance of __contains__ checks for deques.Raymond Hettinger2015-03-201-0/+20
| |
* | Issue #23681: The -b option now affects comparisons of bytes with int.Serhiy Storchaka2015-03-201-13/+28
| |
* | Issue #23681: Fixed Python 2 to 3 poring bugs.Serhiy Storchaka2015-03-206-15/+13
|\ \ | |/ | | | | Indexing bytes retiurns an integer, not bytes.
| * Issue #23681: Fixed Python 2 to 3 poring bugs.Serhiy Storchaka2015-03-205-14/+12
| | | | | | | | Indexing bytes retiurns an integer, not bytes.
* | Issue #23700: NamedTemporaryFile iterator closed underlied file object inSerhiy Storchaka2015-03-201-3/+5
|\ \ | |/ | | | | | | | | some circunstances while NamedTemporaryFile object was living. This causes failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__ to make tests passed.
| * Issue #23700: NamedTemporaryFile iterator closed underlied file object inSerhiy Storchaka2015-03-201-3/+5
| | | | | | | | | | | | some circunstances while NamedTemporaryFile object was living. This causes failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__ to make tests passed.
* | Issue #23715: Fix test_script_helperVictor Stinner2015-03-201-2/+2
| |
* | Issue #23696: Remove test on ZipImportError.__context__ because the context isVictor Stinner2015-03-201-1/+0
| | | | | | | | | | | | | | | | | | None on Windows. When the file is not readable, the error occurs at open on UNIX. On Windows, the error only occurs at the first operation on the open file. It would require to many changes to set __context__ to an OSError for all file operations, for a little benefit (__context__ is almost never used).
* | Issue #23715: Fix test_eintr, skip tests on signal.sigwaitinfo() andVictor Stinner2015-03-201-0/+4
| | | | | | | | signal.sigtimedwait() if functions are missing
* | Issue #23715: Enhance test.script_helper to investigate test_eintr failureVictor Stinner2015-03-201-4/+23
| | | | | | | | If Python failed, show also stdout in the assertion error.
* | Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retriedVictor Stinner2015-03-202-30/+37
| | | | | | | | | | | | | | | | | | | | when interrupted by a signal not in the *sigset* parameter, if the signal handler does not raise an exception. signal.sigtimedwait() recomputes the timeout with a monotonic clock when it is retried. Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't raise InterruptedError anymore if it is interrupted by a signal not in its sigset parameter.
* | Issue #23696: Chain ZipImportError to the OSErrorVictor Stinner2015-03-201-1/+4
| |
* | Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, andSerhiy Storchaka2015-03-204-2/+19
| | | | | | | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too.
* | Issue #23646: Enhance precision of time.sleep() and socket timeout whenVictor Stinner2015-03-201-5/+2
| | | | | | | | | | | | | | | | interrupted by a signal Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro. The _PyTime_ADD_SECONDS only supported an integer number of seconds, the _PyTime_AddDouble() has subsecond resolution.
* | Issue #23632: Memoryviews now allow tuple indexing (including for ↵Antoine Pitrou2015-03-191-6/+50
| | | | | | | | multi-dimensional memoryviews).
* | Issue #22181: The availability of the getrandom() is now checked in configure,Victor Stinner2015-03-191-0/+3
| | | | | | | | | | | | and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define. Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
* | Issue #23646: If time.sleep() is interrupted by a signal, the sleep is nowVictor Stinner2015-03-192-15/+36
| | | | | | | | | | | | | | retried with the recomputed delay, except if the signal handler raises an exception (PEP 475). Modify also test_signal to use a monotonic clock instead of the system clock.
* | Issue #23136: _strptime now uniformly handles all days in week 0, includingSerhiy Storchaka2015-03-192-5/+23
|\ \ | |/ | | | | Jan 30 of previous year. Based on patch by Jim Carroll.
| * Issue #23136: _strptime now uniformly handles all days in week 0, includingSerhiy Storchaka2015-03-192-5/+23
| | | | | | | | Jan 30 of previous year. Based on patch by Jim Carroll.
* | Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-192-1/+16
|\ \ | |/ | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
| * Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-192-1/+16
| | | | | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
* | merge 3.4Benjamin Peterson2015-03-191-2/+2
|\ \ | |/
| * wrap properlyBenjamin Peterson2015-03-191-2/+2
| |
| * issue23673Ethan Furman2015-03-194-9/+48
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | issue23673Ethan Furman2015-03-196-30/+63
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | Issue #22903: The fake test case created by unittest.loader when it fails ↵Antoine Pitrou2015-03-182-10/+34
|\ \ | |/ | | | | importing a test module is now picklable.
| * Issue #22903: The fake test case created by unittest.loader when it fails ↵Antoine Pitrou2015-03-182-9/+29
| | | | | | | | importing a test module is now picklable.
* | Issue #23353: improve exceptions tests for generatorsAntoine Pitrou2015-03-181-0/+46
|\ \ | |/
| * Issue #23353: improve exceptions tests for generatorsAntoine Pitrou2015-03-181-0/+46
| |
* | Restored backward compatibility of pickling http.cookies.Morsel. It wasSerhiy Storchaka2015-03-182-0/+32
| | | | | | | | broken after converting instance attributes to properies in issue #2211.