Chris Rebert <c...@rebertia.com> wrote: >On Tue, Dec 15, 2009 at 9:47 PM, Tim Roberts <t...@probo.com> wrote: >> Tobias Weber <t...@gmx.net> wrote: >>> >>>despite the directives for leading zero stime.strptime('09121', >>>'%y%m%d') returns the first of December. Shouldn't it raise ValueError? >> >> Python merely calls the strptime function in your C run-time library. If >> it sucks, so will time.strptime. > >Er, no, wrong: >http://svn.python.org/view/python/trunk/Lib/_strptime.py?view=markup
Chris is right, I'm wrong. time.strptime is a C function that loads and runs the version in the _strptime.py module. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list