[docs] [issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

Matthew Earl report at bugs.python.org
Thu Oct 24 18:13:21 CEST 2013

Matthew Earl added the comment:

Out of interest, what's the reason for accepting the time.strptime() version as a bug, but not datetime.datetime.strptime()? Is it that time.strptime() is meant to be a simple parsing from string to tuple (with minimal checks), whereas datetime.datetime.strptime() should represent an actual point in time, therefore extra validation is expected to occur?

If so I'm happy to either close or add a small note to the docs (I don't mind which.)


Python tracker <report at bugs.python.org>

More information about the docs mailing list