[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5979] strptime() gives inconsistent exceptions

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5979] strptime() gives inconsistent exceptions

2011-02-27 Thread Filip GruszczyƄski
Filip GruszczyƄski added the comment: But this is exactly how strptime in C. Consider this: #include #include #include #include int main(){ char buf[255]; struct tm tm; memset(&tm, 0, sizeof(tm)); strptime("123", "%m%d", &tm); strftime(buf, sizeof(buf), "%d %b

[issue5979] strptime() gives inconsistent exceptions

2011-01-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: unit test needed -> needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ __

[issue5979] strptime() gives inconsistent exceptions

2010-06-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___

[issue5979] strptime() gives inconsistent exceptions

2010-06-05 Thread Alexander Belopolsky
Alexander Belopolsky 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. >>> datetime.strptime('123', '%m%

[issue5979] strptime() gives inconsistent exceptions

2009-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5979] strptime() gives inconsistent exceptions

2009-05-09 Thread Ryan Leslie
New submission from Ryan Leslie : 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'