Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-23699: Use a macro to reduce boilerplate code in rich comparison ↵ | stratakis | 2017-11-02 | 1 | -16/+1 | |
| | | | | functions (GH-793) | |||||
* | bpo-31752: Fix possible crash in timedelta constructor called with custom ↵ | Serhiy Storchaka | 2017-10-23 | 1 | -2/+7 | |
| | | | | | integers. (#3947) Bad remainder in divmod() in intermediate calculations caused an assertion failure. | |||||
* | Refactor multiplication and division of timedelta and float. (#3656) | Serhiy Storchaka | 2017-10-04 | 1 | -41/+10 | |
| | | | Implementations of these operations are virtually identical. | |||||
* | bpo-31293: Fix crashes in truediv and mul of a timedelta by a float with a ↵ | Oren Milman | 2017-09-19 | 1 | -4/+33 | |
| | | | | bad as_integer_ratio() method. (#3227) | |||||
* | bpo-31338 (#3374) | Barry Warsaw | 2017-09-14 | 1 | -2/+1 | |
| | | | | | | | * Add Py_UNREACHABLE() as an alias to abort(). * Use Py_UNREACHABLE() instead of assert(0) * Convert more unreachable code to use Py_UNREACHABLE() * Document Py_UNREACHABLE() and a few other macros. | |||||
* | Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896) | Alexander Belopolsky | 2017-07-31 | 1 | -27/+30 | |
| | | | | | | | | | | | | | | | | | | * Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. * bpo-5288: Implemented %z formatting of sub-minute offsets. * bpo-5288: Removed mentions of the whole minute limitation on TZ offsets. * bpo-5288: Removed one more mention of the whole minute limitation. Thanks @csabella! * Fix a formatting error in the docs * Addressed review comments. Thanks, @haypo. | |||||
* | bpo-30302 Make timedelta.__repr__ more informative. (#1493) | Utkarsh Upadhyay | 2017-07-25 | 1 | -15/+44 | |
| | ||||||
* | bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927) | Serhiy Storchaka | 2017-03-31 | 1 | -11/+10 | |
| | | | objects when pass out of bound fold argument. | |||||
* | bpo-29878: Add global instances of int for 0 and 1. (#852) | Serhiy Storchaka | 2017-03-30 | 1 | -5/+3 | |
| | ||||||
* | Merge 3.6 | Victor Stinner | 2017-02-10 | 1 | -21/+40 | |
|\ | ||||||
| * | Fix datetime.fromtimestamp(): check bounds | Victor Stinner | 2017-02-10 | 1 | -21/+40 | |
| | | | | | | | | | | Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check minimum and maximum years. | |||||
* | | Merge 3.6 | Victor Stinner | 2017-01-03 | 1 | -5/+5 | |
|\ \ | |/ | ||||||
| * | Issue #29140: Fix hash(datetime.time) | Victor Stinner | 2017-01-03 | 1 | -5/+5 | |
| | | | | | | | | | | | | Fix time_hash() function: replace DATE_xxx() macros with TIME_xxx() macros. Before, the hash function used a wrong value for microseconds if fold is set (equal to 1). | |||||
* | | Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵ | Serhiy Storchaka | 2016-12-16 | 1 | -1/+1 | |
| | | | | | | | | dict. | |||||
* | | Use _PyObject_CallMethodIdObjArgs() in _datetime | Victor Stinner | 2016-12-09 | 1 | -8/+11 | |
| | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string. | |||||
* | | Fix refleak introduced in change 032cbdb596fe | Victor Stinner | 2016-12-09 | 1 | -0/+1 | |
| | | | | | | | | Issue #28915. | |||||
* | | build_struct_time() uses Py_BuildValue() | Victor Stinner | 2016-12-09 | 1 | -11/+20 | |
| | | | | | | | | | | | | Issue #28915: Avoid calling _PyObject_CallMethodId() with "(...)" format to avoid the creation of a temporary tuple: use Py_BuildValue() with _PyObject_CallMethodIdObjArgs(). | |||||
* | | Don't parenthesis in _PyObject_CallMethodId() format | Victor Stinner | 2016-12-09 | 1 | -1/+1 | |
| | | | | | | | | | | Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient. | |||||
* | | Issue #28752: Restored the __reduce__() methods of datetime objects. | Serhiy Storchaka | 2016-11-22 | 1 | -8/+26 | |
|\ \ | |/ | ||||||
| * | Issue #28752: Restored the __reduce__() methods of datetime objects. | Serhiy Storchaka | 2016-11-22 | 1 | -8/+26 | |
| | | ||||||
* | | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -2/+2 | |
|\ \ | |/ | | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | |||||
| * | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -2/+2 | |
| | | | | | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | |||||
* | | Issue #28511: Use the "U" format instead of "O!" in PyArg_Parse*. | Serhiy Storchaka | 2016-10-23 | 1 | -3/+2 | |
|/ | ||||||
* | Issue #28148: Stop using localtime() and gmtime() in the time module. | Alexander Belopolsky | 2016-09-28 | 1 | -51/+16 | |
| | | | | | | Introduced platform independent _PyTime_localtime API that is similar to POSIX localtime_r, but available on all platforms. Patch by Ed Schouten. | |||||
* | stop using Py_LL and Py_ULL | Benjamin Peterson | 2016-09-18 | 1 | -1/+1 | |
| | ||||||
* | #28067: Fixed another typo. | Alexander Belopolsky | 2016-09-10 | 1 | -1/+1 | |
| | ||||||
* | #28067: Fixed a typo. | Alexander Belopolsky | 2016-09-10 | 1 | -1/+1 | |
| | ||||||
* | Closes #28067: Do not call localtime (gmtime) in datetime module. | Alexander Belopolsky | 2016-09-10 | 1 | -42/+60 | |
| | ||||||
* | fix dummy macro | Benjamin Peterson | 2016-09-09 | 1 | -1/+2 | |
| | ||||||
* | replace PY_LONG_LONG with long long | Benjamin Peterson | 2016-09-06 | 1 | -12/+12 | |
| | ||||||
* | Avoid inefficient way to call functions without argument | Victor Stinner | 2016-09-05 | 1 | -4/+4 | |
| | | | | | | Don't pass "()" format to PyObject_CallXXX() to call a function without argument: pass NULL as the format string instead. It avoids to have to parse a string to produce 0 argument. | |||||
* | Issue #27809: tzinfo_reduce() uses fast call | Victor Stinner | 2016-08-23 | 1 | -14/+10 | |
| | ||||||
* | Closes #27710: Disallow fold not in [0, 1] in time and datetime constructors. | Alexander Belopolsky | 2016-08-08 | 1 | -5/+23 | |
| | ||||||
* | Closes #27661: Added tzinfo keyword argument to datetime.combine. | Alexander Belopolsky | 2016-08-02 | 1 | -16/+20 | |
| | ||||||
* | Issue 24773: Added a time_t overflow check. | Alexander Belopolsky | 2016-07-25 | 1 | -1/+8 | |
| | ||||||
* | Closes issue #24773: Implement PEP 495 (Local Time Disambiguation). | Alexander Belopolsky | 2016-07-22 | 1 | -149/+526 | |
| | ||||||
* | Issue #27171: Merge typo fixes from 3.5 | Martin Panter | 2016-06-02 | 1 | -2/+2 | |
|\ | ||||||
| * | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -2/+2 | |
| | | ||||||
* | | Issue #27076: Merge spelling from 3.5 | Martin Panter | 2016-05-26 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 1 | -1/+1 | |
| | | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä. | |||||
* | | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -3/+3 | |
|\ \ | |/ | | | | | in places where Py_DECREF was used. | |||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -3/+3 | |
|\ \ | |/ | ||||||
* | | merge | Alexander Belopolsky | 2016-03-25 | 1 | -1/+6 | |
|\ \ | |/ | ||||||
| * | Issue#26616:Fixed a bug in datetime.astimezone() method. | Alexander Belopolsky | 2016-03-25 | 1 | -1/+6 | |
| | | ||||||
| * | Closes issue #23600: Wrong results from tzinfo.fromutc(). | Alexander Belopolsky | 2015-09-27 | 1 | -1/+1 | |
| | | ||||||
* | | Closes #19475: Added timespec to the datetime.isoformat() method. | Alexander Belopolsky | 2016-03-06 | 1 | -28/+95 | |
| | | | | | | | | | | | | | | Added an optional argument timespec to the datetime isoformat() method to choose the precision of the time component. Original patch by Alessandro Cucci. | |||||
* | | Issue #20440: Cleaning up the code by using Py_SETREF. | Serhiy Storchaka | 2016-01-05 | 1 | -18/+6 | |
| | | ||||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 | |
| | | | | | | | | private functions. | |||||
* | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -10/+10 | |
| | | ||||||
* | | Issue #25558: Use compile-time asserts. | Serhiy Storchaka | 2015-11-07 | 1 | -3/+3 | |
| | |