[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979 ___

[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979 ___ ___

[issue5979] strptime() gives inconsistent exceptions

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979 ___ ___

[issue5979] strptime() gives inconsistent exceptions

2011-02-27 Thread Filip GruszczyƄski
Filip GruszczyƄski grusz...@gmail.com added the comment: But this is exactly how strptime in C. Consider this: #include time.h #include stdio.h #include stdlib.h #include string.h int main(){ char buf[255]; struct tm tm; memset(tm, 0, sizeof(tm)); strptime(123, %m%d,

[issue5979] strptime() gives inconsistent exceptions

2011-01-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: unit test needed - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979

[issue5979] strptime() gives inconsistent exceptions

2010-06-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Looks like a bug to me: datetime.strptime(1, %d) datetime.datetime(1900, 1, 1, 0, 0) datetime.strptime('1', '%m') datetime.datetime(1900, 1, 1, 0, 0) both %m and %d accept single digits but they should not.

[issue5979] strptime() gives inconsistent exceptions

2010-06-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- versions: +Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979

[issue5979] strptime() gives inconsistent exceptions

2009-05-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979 ___ ___ Python-bugs-list

[issue5979] strptime() gives inconsistent exceptions

2009-05-09 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: e.g. from datetime import datetime datetime.strptime(19951001, %Y%m%d) datetime.datetime(1995, 10, 1, 0, 0) datetime.strptime(19951000, %Y%m%d) # day = 0, month 11 ... ValueError: time data '19951000' does not match format '%Y%m%d'