[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 40fdf471931f029ea07e6190f0fe116e0735661b by Serhiy Storchaka in branch '2.7': [2.7] bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) (GH-10617)

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-11-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9864 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-11-20 Thread miss-islington
miss-islington added the comment: New changeset 7a0d964afb41bde846771c81ba746238339cdd8c by Miss Islington (bot) in branch '3.6': bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) https://github.com/python/cpython/commit/7a0d964afb41bde846771c81ba746238339cdd8c --

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-11-20 Thread miss-islington
miss-islington added the comment: New changeset d57ab8ac182d15558118523ad1b11b029e105c46 by Miss Islington (bot) in branch '3.7': bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) https://github.com/python/cpython/commit/d57ab8ac182d15558118523ad1b11b029e105c46 --

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-11-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +9859 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-11-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +9861 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3ec0f495163da3b7a15deb2805cec48aed432f58 by Serhiy Storchaka in branch 'master': bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) https://github.com/python/cpython/commit/3ec0f495163da3b7a15deb2805cec48aed432f58 --

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9379 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9377 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9311 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-18 Thread Thomas Wouters
Thomas Wouters added the comment: This patch includes assertions that are easily triggered from user code: https://bugs.python.org/issue35021 -- nosy: +twouters ___ Python tracker

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5ef883b096895a84123760859f0f34ad37bf2277 by Serhiy Storchaka in branch '2.7': [2.7] bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4088)

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4058 ___ Python tracker ___ ___

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6e45d7b90accbbdfef353c41ab0a78a3e4742803 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4086)

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4056 ___ Python tracker ___

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4ffd4653a7ec9c97775472276cf5e159e2366bb2 by Serhiy Storchaka in branch 'master': bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (#3947)

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unpatched Python should crash in debug build and can raise SystemError in release build. I can't reproduce a crash on Windows after the patch. -- ___ Python tracker

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Win10, installed 3.5.4, 3.6.3, 3.7.1a1 all raise SystemError. 3.6 and 3.7 repository debug builds raise AssertionError and Windows crash box. After the patch, a silent crash. -- nosy: +terry.reedy

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-11 Thread Louie Lu
Louie Lu added the comment: I got a different result in latest commit: eeb5ffd54e5 ➜ cpython git:(master) ✗ ./python test.py Traceback (most recent call last): File "test.py", line 15, in timedelta(hours=BadInt(1)) SystemError: returned NULL without setting an error Do

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +3922 ___ Python tracker ___

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The following code causes an assertion error in timedelta constructor. from datetime import timedelta class BadInt(int): def __mul__(self, other): return Prod() class Prod: def __radd__(self, other):