Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Removed unintentional trailing spaces in text files. | Serhiy Storchaka | 2015-03-29 | 15 | -66/+66 |
| | |||||
* | Make some tests more frienly to MemoryError. | Serhiy Storchaka | 2015-03-28 | 6 | -16/+42 |
|\ | | | | | | | Free memory, unlock hanging threads. | ||||
| * | Make some tests more frienly to MemoryError. | Serhiy Storchaka | 2015-03-28 | 6 | -16/+43 |
| | | | | | | | | Free memory, unlock hanging threads. | ||||
* | | Issue #22117: Fix _PyTime_GetMonotonicClock() and | Victor Stinner | 2015-03-28 | 1 | -12/+20 |
| | | | | | | | | | | _PyTime_GetSystemClockWithInfo() to not raise an exception and return 0 on error (it should never occur) | ||||
* | | Issue #22117: Add the new _PyTime_ROUND_FLOOR rounding method for the datetime | Victor Stinner | 2015-03-28 | 5 | -56/+43 |
| | | | | | | | | | | module. time.clock_settime() now uses this rounding method instead of _PyTime_ROUND_DOWN to handle correctly dates before 1970. | ||||
* | | Issue #22117: Use the _PyTime_t API for time.clock_settime() | Victor Stinner | 2015-03-28 | 3 | -27/+5 |
| | | | | | | | | Remove also the now unused _PyTime_AddDouble() function. | ||||
* | | Issue #22117: Use the new _PyTime_t API in the select module | Victor Stinner | 2015-03-28 | 3 | -41/+22 |
| | | |||||
* | | Issue #22117: The thread module uses the new _PyTime_t timestamp API | Victor Stinner | 2015-03-28 | 3 | -219/+76 |
| | | | | | | | | | | | | | | | | | | Add also a new _PyTime_AsMicroseconds() function. threading.TIMEOUT_MAX is now be smaller: only 292 years instead of 292,271 years on 64-bit system for example. Sorry, your threads will hang a *little bit* shorter. Call me if you want to ensure that your locks wait longer, I can share some tricks with you. | ||||
* | | Issue #22117: Fix ssl to use _PyTime_t API on sock_timeout | Victor Stinner | 2015-03-28 | 1 | -11/+14 |
| | | | | | | | | I didn't notice that the ssl module uses private attributes of socket objects. | ||||
* | | Issue #22117: remove _PyTime_INTERVAL() macro | Victor Stinner | 2015-03-28 | 1 | -10/+0 |
| | | |||||
* | | Issue #22117: The socket module uses _PyTime_t timestamp for timeouts | Victor Stinner | 2015-03-28 | 2 | -91/+124 |
| | | |||||
* | | Issue #22117: Write unit tests for _PyTime_AsTimeval() | Victor Stinner | 2015-03-28 | 5 | -15/+103 |
| | | | | | | | | | | | | | | * _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 #23618, #22117: refactor socketmodule.c | Victor Stinner | 2015-03-27 | 1 | -83/+113 |
| | | | | | | | | | | Move Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS inside internal_select_ex() to prepare a switch to the _PyTime_t type and retry syscall on EINTR. | ||||
* | | Issue #22117: The signal modules uses the new _PyTime_t API | Victor Stinner | 2015-03-27 | 5 | -15/+88 |
| | | | | | | | | | | * Add _PyTime_AsTimespec() * Add unit tests for _PyTime_AsTimespec() | ||||
* | | Issue #22117: The gc module now uses _PyTime_t timestamp | Victor Stinner | 2015-03-27 | 1 | -6/+6 |
| | | |||||
* | | Issue #22117: time.time() now uses the new _PyTime_t API | Victor Stinner | 2015-03-27 | 3 | -12/+133 |
| | | | | | | | | * Add _PyTime_GetSystemClockWithInfo() | ||||
* | | Issue #22117: time.monotonic() now uses the new _PyTime_t API | Victor Stinner | 2015-03-27 | 5 | -15/+121 |
| | | | | | | | | | | | | * Add _PyTime_FromNanoseconds() * Add _PyTime_AsSecondsDouble() * Add unit tests for _PyTime_AsSecondsDouble() | ||||
* | | format .. note properly | Benjamin Peterson | 2015-03-27 | 1 | -3/+5 |
| | | |||||
* | | Remove a dead test for a never-launched API | Brett Cannon | 2015-03-27 | 1 | -9/+0 |
| | | |||||
* | | Merge | Brett Cannon | 2015-03-27 | 5 | -86/+211 |
|\ \ | |||||
| * | | 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 | ||||
* | | | Fix module deprecation warnings to have a useful stacklevel | Brett Cannon | 2015-03-27 | 2 | -2/+2 |
|/ / | |||||
* | | 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 |
|\ \ | |/ |