Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #16096: Fix several occurrences of potential signed integer overflow. ↵ | Mark Dickinson | 2012-10-06 | 1 | -4/+3 |
| | | | | Thanks Serhiy Storchaka. | ||||
* | Closes #15973: fix a segmentation fault when comparing timezone objects. | Georg Brandl | 2012-09-22 | 1 | -0/+6 |
| | |||||
* | Issue #9527: tm_gmtoff has 'correct' sign. | Alexander Belopolsky | 2012-06-22 | 1 | -7/+3 |
| | |||||
* | Fixed compiler warnings in datetime_astimezone() | Alexander Belopolsky | 2012-06-22 | 1 | -4/+5 |
| | |||||
* | Issue #9527: Fixes for platforms without tm_zone | Alexander Belopolsky | 2012-06-22 | 1 | -20/+22 |
| | |||||
* | Issue #9527: datetime.astimezone() method will now supply a class | Alexander Belopolsky | 2012-06-22 | 1 | -4/+82 |
| | | | | | timezone instance corresponding to the system local timezone when called with no arguments. | ||||
* | Issue #15006: Allow equality comparison between naive and aware time | Alexander Belopolsky | 2012-06-16 | 1 | -0/+16 |
| | | | | or datetime objects. | ||||
* | Issue #2736: Added datetime.timestamp() method. | Alexander Belopolsky | 2012-06-08 | 1 | -0/+49 |
| | |||||
* | Issue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() | Victor Stinner | 2012-03-13 | 1 | -36/+39 |
| | | | | | and datetime.datetime.utcfromtimestamp() now raise an OSError instead of ValueError if localtime() or gmtime() failed. | ||||
* | Close #14180: Factorize code to convert a number of seconds to time_t, ↵ | Victor Stinner | 2012-03-13 | 1 | -32/+13 |
| | | | | | | | | | | | | | timeval or timespec time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now raises an OverflowError, instead of a ValueError, if the timestamp does not fit in time_t. datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now round microseconds towards zero instead of rounding to nearest with ties going away from zero. | ||||
* | Remove an unnecessary extra copy of the bytes hash function. | Gregory P. Smith | 2012-01-14 | 1 | -15/+1 |
| | | | | | | | | | This copy also had a bug in it, it fails to incorporate the length into the hash by using it as the loop variable so it'll always be -1 by the time it is XORed in. As such: I'm doing this only in Python 3.3 and not backporting as it would change the existing hash behavior of datetime objects. | ||||
* | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() | Victor Stinner | 2011-11-21 | 1 | -2/+2 |
| | | | | And PyUnicode_GetSize() => PyUnicode_GetLength() | ||||
* | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -19/+19 |
| | |||||
* | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 1 | -2/+4 |
| | |||||
* | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -25/+52 |
| | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -6/+5 |
| | |||||
* | Issue #1621: Fix undefined behaviour from signed overflow in datetime module ↵ | Mark Dickinson | 2011-09-25 | 1 | -4/+4 |
| | | | | hashes, array and list iterations, and get_integer (stringlib/string_format.h) | ||||
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED. | Brian Curtin | 2011-08-11 | 1 | -38/+21 |
| | | | | The macro was introduced in #12724. | ||||
* | Issue #11930: Remove year >= 1000 limitation from datetime.strftime. | Alexander Belopolsky | 2011-05-02 | 1 | -25/+0 |
| | | | | Patch by Victor Stinner. | ||||
* | Issue #11576: Fixed timedelta subtraction glitch on big timedelta values | Alexander Belopolsky | 2011-04-06 | 1 | -7/+8 |
|\ | |||||
| * | Issue #11576: Fixed timedelta subtraction glitch on big timedelta values | Alexander Belopolsky | 2011-04-06 | 1 | -7/+8 |
| | | |||||
* | | Issue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead of | Victor Stinner | 2011-03-21 | 1 | -6/+3 |
| | | | | | | | | | | PyOS_snprintf() to avoid temporary buffer allocated on the stack and a conversion from bytes to Unicode. | ||||
* | | Issue #8914: fix various warnings from the Clang static analyzer v254. | Brett Cannon | 2011-02-22 | 1 | -1/+1 |
|/ | |||||
* | Issue #1777412: extended year range of strftime down to 1000. | Alexander Belopolsky | 2011-01-08 | 1 | -6/+6 |
| | |||||
* | Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for ↵ | Alexander Belopolsky | 2010-12-08 | 1 | -1/+2 |
| | | | | NULL | ||||
* | Remove redundant includes of headers that are already included by Python.h. | Georg Brandl | 2010-11-30 | 1 | -1/+0 |
| | |||||
* | make hashes always the size of pointers; introduce Py_hash_t #9778 | Benjamin Peterson | 2010-10-17 | 1 | -7/+7 |
| | |||||
* | Issue 9183: Intern UTC timezone. | Alexander Belopolsky | 2010-10-14 | 1 | -14/+31 |
| | |||||
* | Issue 9005: Removed dead code. | Alexander Belopolsky | 2010-10-13 | 1 | -22/+6 |
| | |||||
* | Issue #9079: Added _PyTime_gettimeofday(_PyTime_timeval *tp) to C API | Alexander Belopolsky | 2010-08-05 | 1 | -30/+3 |
| | | | | | | exposed in Python.h. This function is similar to POSIX gettimeofday(struct timeval *tp), but available on platforms without gettimeofday(). | ||||
* | Issue #7989: Added pure python implementation of the datetime module. | Alexander Belopolsky | 2010-07-23 | 1 | -0/+5488 |