summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Partially revert 3603bae63c13 (issue23326) for asyncio.Serhiy Storchaka2015-03-301-0/+4
|
* Merge: #23792: also catch interrupt around pipe.write.R David Murray2015-03-301-1/+6
|\
| * #23792: also catch interrupt around pipe.write.R David Murray2015-03-301-1/+6
| | | | | | | | | | | | The previous patch only dealt with KeyboardInterrupt when all of the data had been consumed by the pager. This deals with the interrupt when some data is still pending.
* | Issue #23605: Fix typo in an os.walk() commentVictor Stinner2015-03-301-1/+1
| | | | | | | | Thanks Ben Hoyt for the report.
* | Merge 3.5.0a3 release engineering changes back into trunk.Larry Hastings2015-03-307-106/+236
|\ \
| * | Issue #23466: %c, %o, %x, and %X in bytes formatting now raise TypeError onSerhiy Storchaka2015-03-301-1/+18
| | | | | | | | | | | | non-integer input.
| * | Issue #23171: csv.Writer.writerow() now supports arbitrary iterables.Serhiy Storchaka2015-03-302-5/+10
| | |
| * | Issue #22117: Remove _PyTime_ROUND_DOWN and _PyTime_ROUND_UP rounding methodsVictor Stinner2015-03-301-87/+13
| | | | | | | | | | | | Use _PyTime_ROUND_FLOOR and _PyTime_ROUND_CEILING instead.
| * | Issue #22117: Add _PyTime_ROUND_CEILING rounding method for timestampsVictor Stinner2015-03-301-4/+61
| | | | | | | | | | | | Add also more tests for ROUNd_FLOOR.
| * | Merge: #23745: handle duplicate MIME parameter names in new parser.R David Murray2015-03-302-7/+136
| |\ \ | | |/
| | * #23745: handle duplicate MIME parameter names in new parser.R David Murray2015-03-302-7/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mimics get_param's error handling for the most part. It is slightly better in some regards as get_param can produce some really weird results for duplicate *0* parts. It departs from get_param slightly in that if we have a mix of non-extended and extended pieces for the same parameter name, the new parser assumes they were all supposed to be extended and concatenates all the values, whereas get_param always picks the non-extended parameter value. All of this error recovery is pretty much arbitrary decisions...
| * | Issue #22117: Fix rounding and implement _PyTime_ROUND_FLOOR in:Victor Stinner2015-03-291-2/+2
| | | | | | | | | | | | | | | | | | - _PyTime_ObjectToTime_t() - _PyTime_ObjectToTimespec() - _PyTime_ObjectToTimeval()
| * | Issue #22390: test.regrtest now emits a warning if temporary files orSerhiy Storchaka2015-03-291-15/+11
| |\ \ | | |/ | | | | | | directories are left after running a test.
| | * Issue #22390: test.regrtest now emits a warning if temporary files orSerhiy Storchaka2015-03-291-15/+11
| | | | | | | | | | | | directories are left after running a test.
* | | Release bump for Python 3.5.0a3.v3.5.0a3Larry Hastings2015-03-292-2/+2
| | |
* | | Regenerated pydoc topics and minor doc fixes for 3.5.0a3.Larry Hastings2015-03-291-1/+1
|/ /
* | Issue #14260: The groupindex attribute of regular expression pattern objectSerhiy Storchaka2015-03-293-4/+14
| | | | | | | | now is non-modifiable mapping.
* | #2211: properly document the Morsel behavior changes.R David Murray2015-03-292-1/+10
| | | | | | | | | | | | | | Also deprecate the undocumented set argument instead of removing it already in 3.5. Initial patch by Demian Brecht.
* | merge 3.4 (#23801)Benjamin Peterson2015-03-292-2/+26
|\ \ | |/
| * Closes #23801 - Ignore entire preamble to multipart in cgi.FieldStorageDonald Stufft2015-03-292-2/+26
| |
* | Merge: #23792: Ignore KeyboardInterrupt when the pydoc pager is active.R David Murray2015-03-291-3/+10
|\ \ | |/
| * #23792: Ignore KeyboardInterrupt when the pydoc pager is active.R David Murray2015-03-291-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, if you hit ctl-c while the pager was active, the python that launched the subprocess for the pager would see the KeyboardInterrupt in the __exit__ method of the subprocess context manager where it was waiting for the subprocess to complete, ending the wait. This would leave the pager running, while the interactive interpreter, after handling the exception by printing it, would go back to trying to post a prompt...but the pager would generally have the terminal in raw mode, and in any case would be still trying to read from stdin. On some systems, even exiting python at that point would not restore the terminal mode. The problem with raw mode could also happen if ctl-C was hit when pydoc was called from the shell command line and the pager was active. Instead, we now wait on the subprocess in a loop, ignoring KeyboardInterrupt just like the pager does, until the pager actually exits. (Note: this was a regression relative to python2...in python2 the pager is called via system, and system does not return until the pager exits.)
* | Added explicit tests for issue #23803.Serhiy Storchaka2015-03-291-0/+2
|\ \ | |/
| * Issue #23803: Fixed str.partition() and str.rpartition() when a separatorSerhiy Storchaka2015-03-291-0/+2
| | | | | | | | is wider then partitioned string.
* | Removed unintentional trailing spaces in text files.Serhiy Storchaka2015-03-294-11/+11
| |
* | Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-286-16/+42
|\ \ | |/ | | | | Free memory, unlock hanging threads.
| * Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-286-16/+43
| | | | | | | | Free memory, unlock hanging threads.
* | Issue #22117: Add the new _PyTime_ROUND_FLOOR rounding method for the datetimeVictor Stinner2015-03-281-48/+18
| | | | | | | | | | module. time.clock_settime() now uses this rounding method instead of _PyTime_ROUND_DOWN to handle correctly dates before 1970.
* | Issue #22117: Write unit tests for _PyTime_AsTimeval()Victor Stinner2015-03-281-0/+38
| | | | | | | | | | | | | | * _PyTime_AsTimeval() now ensures that tv_usec is always positive * _PyTime_AsTimespec() now ensures that tv_nsec is always positive * _PyTime_AsTimeval() now returns an integer on overflow instead of raising an exception
* | Issue #22117: The signal modules uses the new _PyTime_t APIVictor Stinner2015-03-271-1/+28
| | | | | | | | | | * Add _PyTime_AsTimespec() * Add unit tests for _PyTime_AsTimespec()
* | Issue #22117: time.monotonic() now uses the new _PyTime_t APIVictor Stinner2015-03-271-10/+54
| | | | | | | | | | | | * Add _PyTime_FromNanoseconds() * Add _PyTime_AsSecondsDouble() * Add unit tests for _PyTime_AsSecondsDouble()
* | Remove a dead test for a never-launched APIBrett Cannon2015-03-271-9/+0
| |
* | MergeBrett Cannon2015-03-271-79/+173
|\ \
| * | Issue #22117: Fix rounding in _PyTime_FromSecondsObject()Victor Stinner2015-03-271-79/+173
| | | | | | | | | | | | | | | | | | * Rename _PyTime_FromObject() to _PyTime_FromSecondsObject() * Add _PyTime_AsNanosecondsObject() and _testcapi.pytime_fromsecondsobject() * Add unit tests
* | | Fix module deprecation warnings to have a useful stacklevelBrett Cannon2015-03-272-2/+2
|/ /
* | Issue #22117: Fix test_gdb for the new time.sleep()Victor Stinner2015-03-271-6/+8
| | | | | | | | | | | | | | Use time.gmtime() instead of time.sleep(), because time.sleep() is no more declared with METH_VARARGS but with METH_O. time.gmtime() is still declared with METH_VARARGS and so it is called with PyCFunction_Call() which is the target of the test_gdb unit test.
* | Merge 3.4 (test.support)Victor Stinner2015-03-271-1/+1
|\ \ | |/
| * Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-OgVictor Stinner2015-03-271-1/+1
| | | | | | | | -Og does not optimize the C code, it's just "fast debugging".
* | Merge 3.4 (asyncio)Victor Stinner2015-03-272-1/+6
|\ \ | |/
| * asyncio: Fix _SelectorTransport.__repr__() if the event loop is closedVictor Stinner2015-03-272-1/+6
| |
* | Issue #23715: Fix test_sigtimedwait() of test_eintrVictor Stinner2015-03-271-1/+1
| | | | | | | | | | sigtimedwait([], timeout) fails with OSError(EINVAL) on OpenIndiana, wait for a signal which will never be received instead.
* | Issue #23775: pprint() of OrderedDict now outputs the same representationSerhiy Storchaka2015-03-262-24/+37
| | | | | | | | as repr().
* | Issue #23776: Removed asserts from pprint.PrettyPrinter constructor.Serhiy Storchaka2015-03-262-7/+23
| |
* | Issue #23765: Removed IsBadStringPtr calls in ctypesSteve Dower2015-03-261-8/+4
| |
* | Issue #22364: Improved some re error messages using regex for hints.Serhiy Storchaka2015-03-254-193/+295
| |
* | Check that failed writerow() doesn't produce change a file.Serhiy Storchaka2015-03-251-14/+16
|\ \ | |/
| * Check that failed writerow() doesn't produce change a file.Serhiy Storchaka2015-03-251-14/+16
| |
* | Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.Serhiy Storchaka2015-03-252-1/+2
|\ \ | |/
| * Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.Serhiy Storchaka2015-03-252-1/+2
| |
* | Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusiveSerhiy Storchaka2015-03-252-12/+27
| | | | | | | | creation) mode.