Commit Graph

96663 Commits

Author SHA1 Message Date
Alexander Belopolsky e3fd248c77 Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
2016-09-27 20:27:55 -04:00
Alexander Belopolsky 957b75699f Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
2016-09-27 20:26:39 -04:00
Guido van Rossum 39704fcddb Update typing.py and test_typing.py from upstream (https://github.com/python/typing) (merge 3.6->3.7) 2016-09-27 15:23:04 -07:00
Guido van Rossum 6703e042fa Update typing.py and test_typing.py from upstream (https://github.com/python/typing) (merge 3.5->3.6) 2016-09-27 15:22:40 -07:00
Guido van Rossum 4cefe74aef Update typing.py and test_typing.py from upstream (https://github.com/python/typing) 2016-09-27 15:20:12 -07:00
Berker Peksag 331e659047 Issue #28283: Merge from 3.6 2016-09-28 00:40:42 +03:00
Berker Peksag 49d2c389a3 Issue #28283: Merge from 3.5 2016-09-28 00:40:18 +03:00
Berker Peksag 63461bc384 Issue #28283: Remove flaky test test_sock_connect_sock_write_race 2016-09-28 00:39:36 +03:00
Serhiy Storchaka eeeb3c2531 Issue #20947: Fixed a gcc warning with -Wstrict-overflow. 2016-09-27 22:05:04 +03:00
Serhiy Storchaka 9574e0adf2 Issue #20947: Fixed a gcc warning with -Wstrict-overflow. 2016-09-27 22:04:45 +03:00
Serhiy Storchaka 5ae4f49f4a Issue #20947: Fixed a gcc warning with -Wstrict-overflow. 2016-09-27 22:03:51 +03:00
Serhiy Storchaka a6f035ee8d Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.
2016-09-27 20:51:27 +03:00
Serhiy Storchaka 389ef9dcda Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.
2016-09-27 20:51:04 +03:00
Serhiy Storchaka 47dee11ba7 Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.
2016-09-27 20:45:35 +03:00
Serhiy Storchaka be43f2019f Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.
2016-09-27 20:24:19 +03:00
Serhiy Storchaka a12e7842a5 Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.
2016-09-27 20:23:41 +03:00
Serhiy Storchaka c0b7037d4f Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.
2016-09-27 20:14:26 +03:00
Serhiy Storchaka c019158a4c Issue #27703: Got rid of unnecessary NULL checks in do_raise() in release mode.
Patch by Xiang Zhang.
2016-09-27 11:37:10 +03:00
Martin Panter 2f63faefdf Issue #26439: Merge ctypes doc from 3.6 2016-09-27 05:26:49 +00:00
Martin Panter 19f2327e7e Issue #26439: Merge ctypes doc from 3.5 into 3.6 2016-09-27 05:26:12 +00:00
Martin Panter f18a5daadd Issue #26439: Document that RTLD_NOW is always added 2016-09-27 05:10:40 +00:00
Raymond Hettinger b87e8f7d0a merge 2016-09-26 21:46:26 -07:00
Raymond Hettinger 9016f2864a Issue #18844: Make the number of selections a keyword-only argument for random.choices(). 2016-09-26 21:45:57 -07:00
Serhiy Storchaka 9204a20452 Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.
2016-09-27 00:16:25 +03:00
Serhiy Storchaka 22805ca54e Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.
2016-09-27 00:14:24 +03:00
Serhiy Storchaka 407ac47690 Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.
2016-09-27 00:10:03 +03:00
Berker Peksag e2197d1312 Issue #20100: Simplify newPyEpoll_Object()
EPOLL_CLOEXEC is the only value that can be passed
to epoll_create1() and we are passing EPOLL_CLOEXEC
unconditionally since Python 3.4.
2016-09-26 23:30:41 +03:00
Berker Peksag 1849d894d5 Issue #10673: Merge from 3.6 2016-09-26 23:23:01 +03:00
Berker Peksag de10dbec77 Issue #10673: Merge from 3.5 2016-09-26 23:22:44 +03:00
Berker Peksag a24d2d8274 Issue #10673: Document that Process.exitcode can be used to determine timeout
Patch by Tom Clark.
2016-09-26 23:22:22 +03:00
Serhiy Storchaka 60b270f44b Issue #27914: Fixed a comment in PyModule_ExcDef.
Patch by Xiang Zhang.
2016-09-26 23:15:04 +03:00
Serhiy Storchaka 333ad92ec2 Issue #27914: Fixed a comment in PyModule_ExcDef.
Patch by Xiang Zhang.
2016-09-26 23:14:44 +03:00
Berker Peksag 37dd202f14 Issue #18893: Merge from 3.6 2016-09-26 23:07:58 +03:00
Berker Peksag 11179b2ed7 Issue #18893: Merge from 3.5 2016-09-26 23:07:38 +03:00
Berker Peksag 8b6b50814e Issue #18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py
Patch by Madison May.
2016-09-26 23:06:32 +03:00
Serhiy Storchaka a9fc458b77 issue #28144: Decrease empty_keys_struct's dk_refcnt
since there is no dummy_struct any more.
Patch by Xiang Zhang.
2016-09-26 23:01:42 +03:00
Serhiy Storchaka 97932e4c4f issue #28144: Decrease empty_keys_struct's dk_refcnt
since there is no dummy_struct any more.
Patch by Xiang Zhang.
2016-09-26 23:01:23 +03:00
Berker Peksag c53ffcea6a Merge from 3.6 2016-09-26 22:50:53 +03:00
Berker Peksag 8d08265f5e Merge from 3.5 2016-09-26 22:50:32 +03:00
Berker Peksag 6129e14b21 Document that os.mknod() is not available on Windows
Reported by Regina Ochotzki on docs@p.o.
2016-09-26 22:50:11 +03:00
Berker Peksag 0ff400fd0a Merge from 3.6 2016-09-26 22:44:51 +03:00
Berker Peksag 20d458fad6 Merge from 3.5 2016-09-26 22:44:32 +03:00
Berker Peksag 996e5f94d2 os.genenvb() is not availabnle under Windows 2016-09-26 22:44:07 +03:00
Serhiy Storchaka 9ac73c2052 Issue #28194: Clean up some checks in dict implementation.
Patch by Xiang Zhang.
2016-09-26 21:29:58 +03:00
Serhiy Storchaka 46825d2399 Issue #28194: Clean up some checks in dict implementation.
Patch by Xiang Zhang.
2016-09-26 21:29:34 +03:00
Serhiy Storchaka 4e3aab7c73 Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
PyMapping_Keys and PyMapping_Values.  Based on patch by Xiang Zhang.
2016-09-26 20:54:24 +03:00
Serhiy Storchaka 4781b59185 Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
PyMapping_Keys and PyMapping_Values.  Based on patch by Xiang Zhang.
2016-09-26 20:53:27 +03:00
Serhiy Storchaka 1d480bea9c Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
PyMapping_Keys and PyMapping_Values.  Based on patch by Xiang Zhang.
2016-09-26 20:52:41 +03:00
Christian Heimes 5a274465a1 Issue #28277: remove linefeed character from iomodule.h. Patch by Michael Felt 2016-09-26 14:08:56 +02:00
Christian Heimes 9df89d06a0 Issue #28277: remove linefeed character from iomodule.h. Patch by Michael Felt 2016-09-26 14:08:47 +02:00