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
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5979
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5979
___
___
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,
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
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.
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
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
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'