[issue11576] timedelta subtraction glitch on big timedelta values

2011-08-25 Thread Gökçen Eraslan
Gökçen Eraslan gok...@pardus.org.tr added the comment: I can still reproduce that error with Python 2.7.2: Python 2.7.1 (r271:86832, Apr 27 2011, 15:42:42) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. from datetime import * timedelta(9, 86399,

[issue11576] timedelta subtraction glitch on big timedelta values

2011-04-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: What happens is the second value is negated (__neg__) which causes it to become less than timedelta.min and that is causing OverflowError. Yes, and running the test case without C acceleration makes this obvious:

[issue11576] timedelta subtraction glitch on big timedelta values

2011-04-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 76180cc853b6 by Alexander Belopolsky in branch '3.2': Issue #11576: Fixed timedelta subtraction glitch on big timedelta values http://hg.python.org/cpython/rev/76180cc853b6 New changeset d492915cf76d by Alexander Belopolsky in

[issue11576] timedelta subtraction glitch on big timedelta values

2011-04-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 202a9feb1fd6 by Alexander Belopolsky in branch '2.7': Issue #11576: Fixed timedelta subtraction glitch on big timedelta values http://hg.python.org/cpython/rev/202a9feb1fd6 -- ___ Python

[issue11576] timedelta subtraction glitch on big timedelta values

2011-04-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Extension Modules resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: -Python 2.5, Python 2.6, Python 3.1 ___ Python tracker

[issue11576] timedelta subtraction glitch on big timedelta values

2011-03-16 Thread Enrico Zini
New submission from Enrico Zini enr...@enricozini.org: Hello, I was testing edge case behaviour of some code of mine and stumbled into this unexpected domain error from timedelta: from datetime import * timedelta(9, 86399, 99) - timedelta(9, 86399, 98)

[issue11576] timedelta subtraction glitch on big timedelta values

2011-03-16 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: To emphasize that it's only days parameter that is overflowing here is another case: timedelta(9, 1, 1) - timedelta(9, 0, 0) datetime.timedelta(0, 1, 1) timedelta(9, 1, 1) - timedelta(9, 1, 0) Traceback (most

[issue11576] timedelta subtraction glitch on big timedelta values

2011-03-16 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: What happens is the second value is negated (__neg__) which causes it to become less than timedelta.min and that is causing OverflowError. -- components: +Library (Lib) nosy: +belopolsky ___ Python