summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22117: Fix rounding in _PyTime_FromSecondsObject()Victor Stinner2015-03-275-86/+211
| | | | | | * Rename _PyTime_FromObject() to _PyTime_FromSecondsObject() * Add _PyTime_AsNanosecondsObject() and _testcapi.pytime_fromsecondsobject() * Add unit tests
* 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 #23451, #22117: Python 3.5 now requires Windows Vista or newer, soVictor Stinner2015-03-271-47/+2
| | | | | | | | GetTickCount64() is now always available.
* | Issue #22117: Add a new Python timestamp format _PyTime_t to pytime.hVictor Stinner2015-03-273-22/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In practice, _PyTime_t is a number of nanoseconds. Its C type is a 64-bit signed number. It's integer value is in the range [-2^63; 2^63-1]. In seconds, the range is around [-292 years; +292 years]. In term of Epoch timestamp (1970-01-01), it can store a date between 1677-09-21 and 2262-04-11. The API has a resolution of 1 nanosecond and use integer number. With a resolution on 1 nanosecond, 64-bit IEEE 754 floating point numbers loose precision after 194 days. It's not the case with this API. The drawback is overflow for values outside [-2^63; 2^63-1], but these values are unlikely for most Python modules, except of the datetime module. New functions: - _PyTime_GetMonotonicClock() - _PyTime_FromObject() - _PyTime_AsMilliseconds() - _PyTime_AsTimeval() This change uses these new functions in time.sleep() to avoid rounding issues. The new API will be extended step by step, and the old API will be removed step by step. Currently, some code is duplicated just to be able to move incrementally, instead of pushing a large change at once.
* | Issue #23648: Document the PEP 475 in the "Porting to Python 3.5" section andVictor Stinner2015-03-263-0/+33
| | | | | | | | add a version changed note in modified functions.
* | _PyUnicodeWriter_WriteStr() now checks that the input string is consistentVictor Stinner2015-03-261-0/+1
| | | | | | | | | | | | | | in debug mode to detect bugs earlier. _PyUnicodeWriter_Finish() doesn't check if the read only string is consistent, whereas it does check consistency for strings built by itself.
* | Issue #23775: pprint() of OrderedDict now outputs the same representationSerhiy Storchaka2015-03-263-24/+40
| | | | | | | | 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-262-8/+6
| |
* | Issue #22364: Improved some re error messages using regex for hints.Serhiy Storchaka2015-03-256-196/+300
| |
* | 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-253-1/+4
|\ \ | |/
| * Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.Serhiy Storchaka2015-03-253-1/+4
| |
* | Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusiveSerhiy Storchaka2015-03-255-21/+49
| | | | | | | | creation) mode.
* | Missing brace and minor formatting in Windows installerSteve Dower2015-03-251-2/+2
| |
* | Closes #9445: Removes detection of GetFinalPathNameByHandleSteve Dower2015-03-211-50/+6
| |
* | Issue #23765: Remove IsBadStringPtr calls in ctypesSteve Dower2015-03-251-20/+4
| | | | | | | | Also renames a local to avoid warnings about shadowing
* | Fixes UI labels and ability to add/remove features.Steve Dower2015-03-251-10/+21
| |
* | Adds pydoc shortcut, Edit with IDLE menu, moves redist folder into externals ↵Steve Dower2015-03-258-31/+94
| | | | | | | | and fixes test script.
* | Fix typoRaymond Hettinger2015-03-251-1/+1
| |
* | Minor code and comment cleanups.Raymond Hettinger2015-03-251-21/+18
| |
* | Issue #23573: Fix bytes.rfind() and bytearray.rfind() on WindowsVictor Stinner2015-03-252-2/+4
| | | | | | | | | | | | | | Windows has no memrchr() function. This change is only a workaround, the optimization must be reenabled on other platforms.
* | Merge 3.4 (traceback)Victor Stinner2015-03-251-1/+8
|\ \ | |/
| * Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),Victor Stinner2015-03-251-1/+8
| | | | | | | | close the binary file to fix a resource warning.
* | (Merge 3.4) Issue #23571: Fix reentrant call to Py_FatalError()Victor Stinner2015-03-251-17/+28
|\ \ | |/ | | | | | | | | Flushing sys.stdout and sys.stderr in Py_FatalError() can call again Py_FatalError(). Add a reentrant flag to detect this case and just abort at the second call.
| * Issue #23571: Fix reentrant call to Py_FatalError()Victor Stinner2015-03-251-17/+28
| | | | | | | | | | | | Flushing sys.stdout and sys.stderr in Py_FatalError() can call again Py_FatalError(). Add a reentrant flag to detect this case and just abort at the second call.
* | Fixed bytes warnings when run tests with -vv.Serhiy Storchaka2015-03-242-6/+6
|\ \ | |/
| * Fixed bytes warnings when run tests with -vv.Serhiy Storchaka2015-03-242-6/+6
| |
* | Fixed using deprecated escaping in regular expression in _strptime.py ↵Serhiy Storchaka2015-03-242-3/+3
| | | | | | | | (issue23622).
* | Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-244-6/+64
|\ \ | |/ | | | | writer failed in BufferedRWPair.close().
| * Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-244-6/+64
| | | | | | | | writer failed in BufferedRWPair.close().
* | Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``Serhiy Storchaka2015-03-246-19/+60
| | | | | | | | | | and ASCII letter now raise a deprecation warning and will be forbidden in Python 3.6.
* | Issue #4727: Fixed issue number in Misc/NEWS.Serhiy Storchaka2015-03-241-1/+1
| |
* | Issue #23671: string.Template now allows to specify the "self" parameter asSerhiy Storchaka2015-03-246-3/+60
|\ \ | |/ | | | | | | keyword argument. string.Formatter now allows to specify the "self" and the "format_string" parameters as keyword arguments.
| * Issue #23671: string.Template now allows to specify the "self" parameter asSerhiy Storchaka2015-03-244-3/+48
| | | | | | | | | | keyword argument. string.Formatter now allows to specify the "self" and the "format_string" parameters as keyword arguments.
* | Issue #23573: Increased performance of string search operations (str.find,Serhiy Storchaka2015-03-246-193/+248
| | | | | | | | | | str.index, str.count, the in operator, str.split, str.partition) with arguments of different kinds (UCS1, UCS2, UCS4).
* | Added tests for mixed kinds of Unicode strings.Serhiy Storchaka2015-03-241-0/+150
|\ \ | |/
| * Added tests for mixed kinds of Unicode strings.Serhiy Storchaka2015-03-241-0/+150
| |
* | Issue #23583: Added tests for standard IO streams in IDLE.Serhiy Storchaka2015-03-242-0/+235
|\ \ | |/
| * Issue #23583: Added tests for standard IO streams in IDLE.Serhiy Storchaka2015-03-242-0/+238
| |
* | Issue #23502: The pprint module now supports mapping proxies.Serhiy Storchaka2015-03-243-0/+40
| | | | | | | | In particular the __dict__ attributes of building types.
* | Issue #17530: pprint now wraps long bytes objects and bytearrays.Serhiy Storchaka2015-03-243-0/+149
| |
* | Issue #23741: Slightly refactor the pprint module to make it a little moreSerhiy Storchaka2015-03-241-108/+122
| | | | | | | | extesible. No public API is added.
* | Issue #22687: Fixed some corner cases in breaking words in tetxtwrap.Serhiy Storchaka2015-03-243-4/+38
| | | | | | | | Got rid of quadratic complexity in breaking long words.