Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #22117: Fix rounding in _PyTime_FromSecondsObject() | Victor Stinner | 2015-03-27 | 5 | -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 Stinner | 2015-03-27 | 1 | -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 Stinner | 2015-03-27 | 1 | -1/+1 |
|\ | |||||
| * | Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og | Victor Stinner | 2015-03-27 | 1 | -1/+1 |
| | | | | | | | | -Og does not optimize the C code, it's just "fast debugging". | ||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-03-27 | 2 | -1/+6 |
|\ \ | |/ | |||||
| * | asyncio: Fix _SelectorTransport.__repr__() if the event loop is closed | Victor Stinner | 2015-03-27 | 2 | -1/+6 |
| | | |||||
* | | Issue #23715: Fix test_sigtimedwait() of test_eintr | Victor Stinner | 2015-03-27 | 1 | -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, so | Victor Stinner | 2015-03-27 | 1 | -47/+2 |
| | | | | | | | | GetTickCount64() is now always available. | ||||
* | | Issue #22117: Add a new Python timestamp format _PyTime_t to pytime.h | Victor Stinner | 2015-03-27 | 3 | -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 and | Victor Stinner | 2015-03-26 | 3 | -0/+33 |
| | | | | | | | | add a version changed note in modified functions. | ||||
* | | _PyUnicodeWriter_WriteStr() now checks that the input string is consistent | Victor Stinner | 2015-03-26 | 1 | -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 representation | Serhiy Storchaka | 2015-03-26 | 3 | -24/+40 |
| | | | | | | | | as repr(). | ||||
* | | Issue #23776: Removed asserts from pprint.PrettyPrinter constructor. | Serhiy Storchaka | 2015-03-26 | 2 | -7/+23 |
| | | |||||
* | | Issue #23765: Removed IsBadStringPtr calls in ctypes | Steve Dower | 2015-03-26 | 2 | -8/+6 |
| | | |||||
* | | Issue #22364: Improved some re error messages using regex for hints. | Serhiy Storchaka | 2015-03-25 | 6 | -196/+300 |
| | | |||||
* | | Check that failed writerow() doesn't produce change a file. | Serhiy Storchaka | 2015-03-25 | 1 | -14/+16 |
|\ \ | |/ | |||||
| * | Check that failed writerow() doesn't produce change a file. | Serhiy Storchaka | 2015-03-25 | 1 | -14/+16 |
| | | |||||
* | | Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. | Serhiy Storchaka | 2015-03-25 | 3 | -1/+4 |
|\ \ | |/ | |||||
| * | Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. | Serhiy Storchaka | 2015-03-25 | 3 | -1/+4 |
| | | |||||
* | | Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive | Serhiy Storchaka | 2015-03-25 | 5 | -21/+49 |
| | | | | | | | | creation) mode. | ||||
* | | Missing brace and minor formatting in Windows installer | Steve Dower | 2015-03-25 | 1 | -2/+2 |
| | | |||||
* | | Closes #9445: Removes detection of GetFinalPathNameByHandle | Steve Dower | 2015-03-21 | 1 | -50/+6 |
| | | |||||
* | | Issue #23765: Remove IsBadStringPtr calls in ctypes | Steve Dower | 2015-03-25 | 1 | -20/+4 |
| | | | | | | | | Also renames a local to avoid warnings about shadowing | ||||
* | | Fixes UI labels and ability to add/remove features. | Steve Dower | 2015-03-25 | 1 | -10/+21 |
| | | |||||
* | | Adds pydoc shortcut, Edit with IDLE menu, moves redist folder into externals ↵ | Steve Dower | 2015-03-25 | 8 | -31/+94 |
| | | | | | | | | and fixes test script. | ||||
* | | Fix typo | Raymond Hettinger | 2015-03-25 | 1 | -1/+1 |
| | | |||||
* | | Minor code and comment cleanups. | Raymond Hettinger | 2015-03-25 | 1 | -21/+18 |
| | | |||||
* | | Issue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows | Victor Stinner | 2015-03-25 | 2 | -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 Stinner | 2015-03-25 | 1 | -1/+8 |
|\ \ | |/ | |||||
| * | Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(), | Victor Stinner | 2015-03-25 | 1 | -1/+8 |
| | | | | | | | | close the binary file to fix a resource warning. | ||||
* | | (Merge 3.4) Issue #23571: Fix reentrant call to Py_FatalError() | Victor Stinner | 2015-03-25 | 1 | -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 Stinner | 2015-03-25 | 1 | -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 Storchaka | 2015-03-24 | 2 | -6/+6 |
|\ \ | |/ | |||||
| * | Fixed bytes warnings when run tests with -vv. | Serhiy Storchaka | 2015-03-24 | 2 | -6/+6 |
| | | |||||
* | | Fixed using deprecated escaping in regular expression in _strptime.py ↵ | Serhiy Storchaka | 2015-03-24 | 2 | -3/+3 |
| | | | | | | | | (issue23622). | ||||
* | | Issue #21802: The reader in BufferedRWPair now is closed even when closing | Serhiy Storchaka | 2015-03-24 | 4 | -6/+64 |
|\ \ | |/ | | | | | writer failed in BufferedRWPair.close(). | ||||
| * | Issue #21802: The reader in BufferedRWPair now is closed even when closing | Serhiy Storchaka | 2015-03-24 | 4 | -6/+64 |
| | | | | | | | | writer failed in BufferedRWPair.close(). | ||||
* | | Issue #23622: Unknown escapes in regular expressions that consist of ``'\'`` | Serhiy Storchaka | 2015-03-24 | 6 | -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 Storchaka | 2015-03-24 | 1 | -1/+1 |
| | | |||||
* | | Issue #23671: string.Template now allows to specify the "self" parameter as | Serhiy Storchaka | 2015-03-24 | 6 | -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 as | Serhiy Storchaka | 2015-03-24 | 4 | -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 Storchaka | 2015-03-24 | 6 | -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 Storchaka | 2015-03-24 | 1 | -0/+150 |
|\ \ | |/ | |||||
| * | Added tests for mixed kinds of Unicode strings. | Serhiy Storchaka | 2015-03-24 | 1 | -0/+150 |
| | | |||||
* | | Issue #23583: Added tests for standard IO streams in IDLE. | Serhiy Storchaka | 2015-03-24 | 2 | -0/+235 |
|\ \ | |/ | |||||
| * | Issue #23583: Added tests for standard IO streams in IDLE. | Serhiy Storchaka | 2015-03-24 | 2 | -0/+238 |
| | | |||||
* | | Issue #23502: The pprint module now supports mapping proxies. | Serhiy Storchaka | 2015-03-24 | 3 | -0/+40 |
| | | | | | | | | In particular the __dict__ attributes of building types. | ||||
* | | Issue #17530: pprint now wraps long bytes objects and bytearrays. | Serhiy Storchaka | 2015-03-24 | 3 | -0/+149 |
| | | |||||
* | | Issue #23741: Slightly refactor the pprint module to make it a little more | Serhiy Storchaka | 2015-03-24 | 1 | -108/+122 |
| | | | | | | | | extesible. No public API is added. | ||||
* | | Issue #22687: Fixed some corner cases in breaking words in tetxtwrap. | Serhiy Storchaka | 2015-03-24 | 3 | -4/+38 |
| | | | | | | | | Got rid of quadratic complexity in breaking long words. |