Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | remove the concept of an unoptimized function scope from the compiler, since ↵ | Benjamin Peterson | 2015-04-28 | 2 | -21/+2 | |
| | | | | | | | | | | | | it can't happen anymore | |||||
* | | | Silence a gcc "may be used uninitialized" compiler warning. Not true. | Gregory P. Smith | 2015-04-26 | 1 | -0/+1 | |
| | | | | | | | | | | | | Initializing retval prevents the naive warning. | |||||
* | | | Add missing PyAPI_FUNC macro's to the public functions as other .c files do | Gregory P. Smith | 2015-04-26 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | in hopes that this fixes the windows extension module link error for modules trying to call _Py_strhex functions. issue9951. | |||||
* | | | Add the files missing from c9f1630cf2b1 for issue9951. | Gregory P. Smith | 2015-04-26 | 1 | -0/+60 | |
| | | | | | | | | | | | | hg status should be my friend more often... | |||||
* | | | merge 3.4 (#24049) | Benjamin Peterson | 2015-04-24 | 1 | -31/+0 | |
|\ \ \ | |/ / | ||||||
| * | | remove dead *-import checking code (closes #24049) | Benjamin Peterson | 2015-04-24 | 1 | -31/+0 | |
| | | | ||||||
* | | | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the | Serhiy Storchaka | 2015-04-23 | 2 | -31/+13 | |
| | | | | | | | | | | | | same line as function name. | |||||
* | | | Issue #23998: PyImport_ReInitLock() now checks for lock allocation error | Christian Heimes | 2015-04-19 | 1 | -1/+5 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #23998: PyImport_ReInitLock() now checks for lock allocation error | Christian Heimes | 2015-04-19 | 1 | -1/+5 | |
| |\ \ | | |/ | ||||||
| | * | Issue #23998: PyImport_ReInitLock() now checks for lock allocation error | Christian Heimes | 2015-04-19 | 1 | -1/+5 | |
| | | | ||||||
* | | | Fixed error message for the "u#" format code. | Serhiy Storchaka | 2015-04-19 | 1 | -3/+4 | |
|\ \ \ | |/ / | ||||||
| * | | Fixed error message for the "u#" format code. | Serhiy Storchaka | 2015-04-19 | 1 | -3/+4 | |
| | | | ||||||
* | | | Remove redundant check for tb != NULL to shut up Coverity . It has been set ↵ | Christian Heimes | 2015-04-16 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | to Py_None a couple of lines earlier. CID 1291697 (#1 of 1): Dereference before null check (REVERSE_INULL) check_after_deref: Null-checking tb suggests that it may be null, but it has already been dereferenced on all paths leading to the check. | |||||
* | | | #23949: Improve tuple unpacking error messages. | R David Murray | 2015-04-15 | 1 | -7/+17 | |
| | | | | | | | | | | | | Patch by Arnon Yaari. | |||||
* | | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 4 | -29/+49 | |
| | | | ||||||
* | | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 3 | -4227/+4284 | |
| | | | | | | | | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied. | |||||
* | | | Issue #23524: Replace _PyVerify_fd function with calls to ↵ | Steve Dower | 2015-04-12 | 4 | -54/+63 | |
| | | | | | | | | | | | | _set_thread_local_invalid_parameter_handler. | |||||
* | | | fix building without threads (closes #23877) | Benjamin Peterson | 2015-04-06 | 1 | -0/+4 | |
| | | | ||||||
* | | | Issue #23492: Argument Clinic now generates argument parsing code with | Serhiy Storchaka | 2015-04-03 | 2 | -23/+23 | |
| | | | | | | | | | | | | PyArg_Parse instead of PyArg_ParseTuple if possible. | |||||
* | | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 3 | -686/+691 | |
| | | | ||||||
* | | | Issue #22117: Add a new _PyTime_FromSeconds() function | Victor Stinner | 2015-04-03 | 2 | -3/+20 | |
| | | | | | | | | | | | | | | | Fix also _Py_InitializeEx_Private(): initialize time before initializing import, import_init() uses the _PyTime API (for thread locks). | |||||
* | | | Issue #22977: Fixed formatting Windows error messages on Wine. | Serhiy Storchaka | 2015-04-02 | 1 | -2/+2 | |
|\ \ \ | |/ / | | | | | | | Patch by Martin Panter. | |||||
| * | | Issue #22977: Fixed formatting Windows error messages on Wine. | Serhiy Storchaka | 2015-04-02 | 1 | -2/+2 | |
| | | | | | | | | | | | | Patch by Martin Panter. | |||||
* | | | Issue #23836: Use _Py_write_noraise() to retry on EINTR in _Py_DumpTraceback() | Victor Stinner | 2015-04-01 | 1 | -8/+20 | |
| | | | | | | | | | | | | | | | and _Py_DumpTracebackThreads(). Document also these functions to explain that the caller is responsible to call PyErr_CheckSignals(). | |||||
* | | | Issue #23836: Document functions releasing the GIL in fileutils.c | Victor Stinner | 2015-04-01 | 1 | -3/+5 | |
| | | | ||||||
* | | | Issue #23836: Add _Py_write_noraise() function | Victor Stinner | 2015-04-01 | 1 | -48/+83 | |
| | | | | | | | | | | | | | | | Helper to write() which retries write() if it is interrupted by a signal (fails with EINTR). | |||||
* | | | Issue #22117, issue #23485: Fix _PyTime_AsMilliseconds() and | Victor Stinner | 2015-04-01 | 1 | -13/+13 | |
| | | | | | | | | | | | | | | | | | | _PyTime_AsMicroseconds() rounding. Add also unit tests. | |||||
* | | | Issue #23485: Add _PyTime_FromMillisecondsObject() function | Victor Stinner | 2015-03-30 | 1 | -5/+18 | |
| | | | ||||||
* | | | (Merge 3.4) Issue #22585: os.urandom() now releases the GIL when the | Victor Stinner | 2015-03-30 | 1 | -6/+14 | |
|\ \ \ | |/ / | | | | | | | getentropy() is used (OpenBSD 5.6+). | |||||
| * | | Issue #22585: os.urandom() now releases the GIL when the getentropy() is used | Victor Stinner | 2015-03-30 | 1 | -6/+14 | |
| | | | | | | | | | | | | (OpenBSD 5.6+). | |||||
* | | | Issue #22181: os.urandom() now releases the GIL when the getrandom() | Victor Stinner | 2015-03-30 | 1 | -2/+11 | |
| | | | | | | | | | | | | implementation is used. | |||||
* | | | Issue #22117: Try to fix rounding in conversion from Python double to _PyTime_t | Victor Stinner | 2015-03-30 | 1 | -1/+2 | |
| | | | | | | | | | | | | using the C volatile keyword. | |||||
* | | | Issue #23752: _Py_fstat() is now responsible to raise the Python exception | Victor Stinner | 2015-03-30 | 5 | -23/+56 | |
| | | | | | | | | | | | | Add _Py_fstat_noraise() function when a Python exception is not welcome. | |||||
* | | | Issue #22117: Remove _PyTime_ROUND_DOWN and _PyTime_ROUND_UP rounding methods | Victor Stinner | 2015-03-30 | 1 | -15/+5 | |
| | | | | | | | | | | | | Use _PyTime_ROUND_FLOOR and _PyTime_ROUND_CEILING instead. | |||||
* | | | Issue #22117: Add _PyTime_ROUND_CEILING rounding method for timestamps | Victor Stinner | 2015-03-30 | 1 | -0/+2 | |
| | | | | | | | | | | | | Add also more tests for ROUNd_FLOOR. | |||||
* | | | Issue #22117: Add assertions to _PyTime_AsTimeval() and _PyTime_AsTimespec() to | Victor Stinner | 2015-03-30 | 1 | -0/+4 | |
| | | | | | | | | | | | | check that microseconds and nanoseconds fits into the specified range. | |||||
* | | | Issue #22117: Fix usage of _PyTime_AsTimeval() | Victor Stinner | 2015-03-30 | 1 | -2/+17 | |
| | | | | | | | | | | | | | | | Add _PyTime_AsTimeval_noraise() function. Call it when it's not possible (or not useful) to raise a Python exception on overflow. | |||||
* | | | Issue #22117: Fix rounding and implement _PyTime_ROUND_FLOOR in: | Victor Stinner | 2015-03-29 | 1 | -24/+20 | |
| | | | | | | | | | | | | | | | | | | - _PyTime_ObjectToTime_t() - _PyTime_ObjectToTimespec() - _PyTime_ObjectToTimeval() | |||||
* | | | Issue #22117: Cleanup pytime.c/.h | Victor Stinner | 2015-03-29 | 1 | -7/+5 | |
| | | | ||||||
* | | | Issue #22117: Use the _PyTime_t API in _datetime.datetime() constructor | Victor Stinner | 2015-03-29 | 1 | -105/+14 | |
| | | | | | | | | | | | | | | | * Remove _PyTime_gettimeofday() * Add _PyTime_GetSystemClock() | |||||
* | | | 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 | 1 | -3/+12 | |
| | | | | | | | | | | | | | | | 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 | 1 | -17/+0 | |
| | | | | | | | | | | | | 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 | 1 | -1/+1 | |
| | | | ||||||
* | | | Issue #22117: The thread module uses the new _PyTime_t timestamp API | Victor Stinner | 2015-03-28 | 1 | -126/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Write unit tests for _PyTime_AsTimeval() | Victor Stinner | 2015-03-28 | 1 | -13/+27 | |
| | | | | | | | | | | | | | | | | | | | | | * _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 API | Victor Stinner | 2015-03-27 | 1 | -0/+21 | |
| | | | | | | | | | | | | | | | * Add _PyTime_AsTimespec() * Add unit tests for _PyTime_AsTimespec() | |||||
* | | | Issue #22117: time.time() now uses the new _PyTime_t API | Victor Stinner | 2015-03-27 | 1 | -9/+120 | |
| | | | | | | | | | | | | * Add _PyTime_GetSystemClockWithInfo() | |||||
* | | | Issue #22117: time.monotonic() now uses the new _PyTime_t API | Victor Stinner | 2015-03-27 | 1 | -0/+26 | |
| | | | | | | | | | | | | | | | | | | * Add _PyTime_FromNanoseconds() * Add _PyTime_AsSecondsDouble() * Add unit tests for _PyTime_AsSecondsDouble() | |||||
* | | | Issue #22117: Fix rounding in _PyTime_FromSecondsObject() | Victor Stinner | 2015-03-27 | 1 | -3/+14 | |
| | | | | | | | | | | | | | | | | | | * Rename _PyTime_FromObject() to _PyTime_FromSecondsObject() * Add _PyTime_AsNanosecondsObject() and _testcapi.pytime_fromsecondsobject() * Add unit tests |