[issue1777412] Python's strftime dislikes years before 1900

2011-01-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to push this for 3.2. Recent discussions at issue10827 and on python-dev seem to favor removal of arbitrary limits on year range. -- nosy: +georg.brandl ___ Python tracker

[issue1777412] Python's strftime dislikes years before 1900

2010-10-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: kiorky: see my msg55157. Python behaves correctly as it stands - raising the exception is fully intentional. It's not a bug that it gets raised; dates before 1900 are just not supported. Adding support for them is a new feature. -- _

[issue1777412] Python's strftime dislikes years before 1900

2010-10-10 Thread kiorky
kiorky added the comment: We must not have the same point of view about new features and bugfixes... -- ___ Python tracker ___ ___

[issue1777412] Python's strftime dislikes years before 1900

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: kiorky, Thank you for the updated patch, but since it implements a new feature, it cannot be applied to 2.x series. I am +1 on removing year > 1900 limitation from datetime.strftime in 3.x, but you need to consider how this can be achieved in pure pyt

[issue1777412] Python's strftime dislikes years before 1900

2010-10-07 Thread kiorky
kiorky added the comment: This patch doesnt apply anymore on py26. Joining an updated patch. -- Added file: http://bugs.python.org/file19157/strftime-pre-1900.patch ___ Python tracker ___

[issue1777412] Python's strftime dislikes years before 1900

2010-07-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Add pure Python implementation of datetime module to CPython superseder: Add pure Python implementation of datetime module to CPython -> ___ Python tracker ___

[issue1777412] Python's strftime dislikes years before 1900

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Adding issue7989 as a dependency because one of the stated reasons for not calling system strftime from datetime directly is because pure python implementations cannot do the same. This of course can be resolved by exposing raw strftime in separate mod

[issue1777412] Python's strftime dislikes years before 1900

2010-06-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I see this in py3k branch on MacOS X: [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> datetime.date(1876, 2, 3).strftime('%Y-%m-%d') Traceback (most recen

[issue1777412] Python's strftime dislikes years before 1900

2010-05-31 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1777412] Python's strftime dislikes years before 1900

2010-05-31 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1777412] Python's strftime dislikes years before 1900

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1777412] Python's strftime dislikes years before 1900

2008-11-10 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: See also issue #3173. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list ma

[issue1777412] Python's strftime dislikes years before 1900

2008-11-10 Thread STINNER Victor
Changes by STINNER Victor <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1777412] Python's strftime dislikes years before 1900

2008-11-10 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: See also Issue1777412. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m

[issue1777412] Python's strftime dislikes years before 1900

2008-11-10 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: The patch doesn't work on Python3 because Python3 changes time.strftime() for year < 1900: if time.accept2dyear is not False (or not set), raise an error; otherwise convert 0..68 => 2000..2068, 69..99 => 1968..1999, or raise an error.

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Ah, I remember now. It was a special case for xmlrpclib to allow its Date objects to operate before 1900. _ Tracker <[EMAIL PROTECTED]> ___

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread David Fraser
David Fraser <[EMAIL PROTECTED]> added the comment: > Which version of Python are you using? I could have sworn we just fixed this problem in CVS a couple weeks ago. This was on the latest Python 2.6 svn... but looking at the py3k branch with viewsvn the code is definitely still there too... Th

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Which version of Python are you using? I could have sworn we just fixed this problem in CVS a couple weeks ago. -- nosy: +skip.montanaro _ Tracker <[EMAIL PROTECTED]>

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread David Fraser
David Fraser <[EMAIL PROTECTED]> added the comment: I have a patch for this, but I don't know which platforms have the problem. On Linux, strftime seems to work fine. Attaching the patch as a work in progress... -- keywords: +patch nosy: +davidfraser Added file: http://bugs.python.org/fi