cpython/Modules
Victor Stinner 511491ade0 Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methods
of datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
zero (ROUND_DOWN). It's important that these methods use the same rounding
mode than datetime.timedelta to keep the property:

   (datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t)

It also the rounding mode used by round(float) for example.

Add more unit tests on the rounding mode in test_datetime.
2015-09-18 14:42:05 +02:00
..
_ctypes Issue #23319: Fix ctypes.BigEndianStructure, swap correctly bytes. Patch 2015-07-29 14:33:52 +02:00
_decimal Issue #17202: Add .bat to .hgeol to force them to CRLF. 2015-04-13 11:59:54 -05:00
_io Issue #25030: Do not document seek() as if it accepts keyword arguments 2015-09-11 03:58:30 +00:00
_multiprocessing Issue #21704: Fix build error for _multiprocessing when semaphores 2014-07-28 23:01:02 +01:00
_sqlite Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:02:49 +03:00
cjkcodecs Closes #23247: Fix a crash in the StreamWriter.reset() of CJK codecs 2015-07-16 22:17:31 +02:00
clinic Issue #23728: binascii.crc_hqx() could return an integer outside of the range 2015-04-20 09:26:49 +03:00
expat merge 3.3 (#19186) 2014-02-04 10:12:18 -05:00
zlib
Setup.config.in
Setup.dist - Use PLATDIR for the platform directory everywhere (refactoring only) 2015-04-13 21:59:57 +02:00
_bisectmodule.c
_bz2module.c
_codecsmodule.c Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 2015-02-03 01:21:08 +02:00
_collectionsmodule.c Issue #19663: Improve error message for defaultdict. 2015-07-20 03:09:22 -04:00
_cryptmodule.c Issue #20530: Argument Clinic's signature format has been revised again. 2014-02-08 22:15:29 -08:00
_csv.c Issue #23659: Document **fmtparams in csv.register_dialect docstring. 2015-06-05 15:17:51 +03:00
_curses_panel.c
_cursesmodule.c Issue #21088: Bugfix for curses.window.addch() regression in 3.4.0. 2014-05-04 04:41:18 -07:00
_datetimemodule.c Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methods 2015-09-18 14:42:05 +02:00
_dbmmodule.c Issue #20530: Argument Clinic's signature format has been revised again. 2014-02-08 22:15:29 -08:00
_elementtree.c Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree. 2015-06-29 22:35:58 +03:00
_freeze_importlib.c
_functoolsmodule.c ensure .keywords is always a dict 2015-05-09 00:25:18 -04:00
_gdbmmodule.c
_hashopenssl.c
_heapqmodule.c Defend against a mutation during comparison 2015-05-11 19:58:56 -07:00
_json.c Issue #24683: Fixed crashes in _json functions called with arguments of 2015-07-26 09:01:22 +03:00
_localemodule.c Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer 2015-02-16 13:28:22 +02:00
_lsprof.c
_lzmamodule.c
_math.c Fix typo. 2014-10-28 22:24:46 +01:00
_math.h
_opcode.c Issue #20530: Argument Clinic's signature format has been revised again. 2014-02-08 22:15:29 -08:00
_operator.c use logical rather than bit and 2014-05-11 16:17:02 -07:00
_pickle.c fix use after free (closes #24552) 2015-07-02 16:18:38 -05:00
_posixsubprocess.c Fix computation of max_fd on OpenBSD. Issue #23852. 2015-04-25 23:43:34 -07:00
_randommodule.c Issue #24620: Random.setstate() now validates the value of state last element. 2015-07-24 09:02:53 +03:00
_scproxy.c
_sre.c Issue #18684: Fixed reading out of the buffer in the re module. 2015-07-06 13:58:33 +03:00
_ssl.c improve style of the convert macro (#24655) 2015-07-18 10:59:13 -07:00
_ssl_data.h Issue #23248: Update ssl error codes from latest OpenSSL git master. 2015-01-18 17:39:32 +01:00
_stat.c
_struct.c Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 2015-02-03 01:21:08 +02:00
_testbuffer.c Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer 2015-02-16 13:28:22 +02:00
_testcapimodule.c Issue #24489: ensure a previously set C errno doesn't disturb cmath.polar(). 2015-06-23 14:31:11 +02:00
_testembed.c
_testimportmultiple.c
_threadmodule.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:22 +03:00
_tkinter.c Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than 8.5.8 2015-04-22 10:53:08 +03:00
_tracemalloc.c _tracemalloc.c: Fix typo 2015-03-18 16:05:18 +01:00
_weakref.c Issue #20530: Argument Clinic's signature format has been revised again. 2014-02-08 22:15:29 -08:00
_winapi.c merge 3.3 (#23361) 2015-02-09 20:58:52 -05:00
addrinfo.h
ar_beos
arraymodule.c Issue #22581: Use more "bytes-like object" throughout the docs and comments. 2014-12-05 22:25:22 +02:00
atexitmodule.c
audioop.c Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm() 2015-06-28 17:52:09 +03:00
binascii.c Issue #23728: binascii.crc_hqx() could return an integer outside of the range 2015-04-20 09:26:49 +03:00
cmathmodule.c Issue #24489: ensure a previously set C errno doesn't disturb cmath.polar(). 2015-06-23 14:31:11 +02:00
config.c.in
errnomodule.c
faulthandler.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:22 +03:00
fcntlmodule.c Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian 2014-11-10 10:42:26 +02:00
fpectlmodule.c
fpetestmodule.c
gc_weakref.txt
gcmodule.c Issue #21435: Segfault in gc with cyclic trash 2014-05-08 17:42:19 -05:00
getaddrinfo.c
getbuildinfo.c
getnameinfo.c
getpath.c Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer 2015-02-16 13:28:22 +02:00
grpmodule.c Closes #19342: improve docstrings in grp module. 2014-10-02 08:34:41 +02:00
hashlib.h
hashtable.c Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C 2014-07-01 08:57:10 +02:00
hashtable.h Issue #21036: Fix typo in macro name 2014-03-24 22:34:34 +01:00
itertoolsmodule.c Issue #25021: Merge from 3.3 to 3.4 2015-09-12 15:30:23 +00:00
ld_so_aix.in
ld_so_beos
main.c
makesetup Issue #17095: Fix Modules/Setup *shared* support. 2014-06-02 01:05:29 -07:00
makexp_aix
mathmodule.c Issue #23641: Cleaned out legacy dunder names from tests and docs. 2015-03-12 21:56:08 +02:00
md5module.c
mmapmodule.c include fcntl.h on all *nix platforms (closes #24217) 2015-08-02 12:15:30 -07:00
nismodule.c
ossaudiodev.c Issue #22369: Change "context manager protocol" to "context management protocol". 2014-09-10 23:43:41 +03:00
overlapped.c asyncio, _overlapped.ConnectPipe(): release the GIL 2015-01-26 22:43:39 +01:00
parsermodule.c
posixmodule.c os.sendfile(headers=None, trailers=None) arguments are not actually accepted 2015-09-09 05:29:24 +00:00
posixmodule.h
pwdmodule.c
pyexpat.c Raise more correct exception on overflow in setting buffer_size attribute of 2015-09-07 22:51:56 +03:00
python.c
readline.c remove extern definition, since it's in a header file (closes #24058) 2015-04-26 15:55:06 -04:00
resource.c
rotatingtree.c
rotatingtree.h
selectmodule.c Issue #23652: Make the select module compile against LSB headers. 2015-08-01 21:34:05 -05:00
sha1module.c
sha256module.c
sha512module.c
signalmodule.c Issue #20320: select.select() and select.kqueue.control() now round the timeout 2014-02-17 00:02:43 +01:00
socketmodule.c Issue #24684: socket.socket.getaddrinfo() now calls 2015-09-11 12:37:30 +02:00
socketmodule.h
spwdmodule.c
sre.h Issue #20998: Fixed re.fullmatch() of repeated single character pattern 2014-05-14 21:48:17 +03:00
sre_constants.h
sre_lib.h Issue #18684: Fixed reading out of the buffer in the re module. 2015-07-06 13:58:33 +03:00
symtablemodule.c
syslogmodule.c Issue #20437: Fixed 22 potential bugs when deleting objects references. 2014-02-09 13:46:20 +02:00
termios.c
testcapi_long.h
timemodule.c Issue #24917: time_strftime() buffer over-read. 2015-09-06 22:18:36 -07:00
tkappinit.c
tkinter.h Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than 8.5.8 2015-04-22 10:53:08 +03:00
unicodedata.c merge 3.3 (#23367) 2015-03-02 11:18:40 -05:00
unicodedata_db.h
unicodename_db.h
xxlimited.c Issue #17162: Add PyType_GetSlot. 2014-02-04 09:33:05 +01:00
xxmodule.c
xxsubtype.c
zipimport.c Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer 2015-02-16 13:28:22 +02:00
zlibmodule.c Issue #8677: make the zlib module "ssize_t clean" for parsing parameters 2014-07-01 16:48:12 +02:00