[Zope3-dev] time.strptime doesn't exist in 2.2 everywhere

Tim Peters tim.one@comcast.net
Wed, 08 Jan 2003 20:22:02 -0500


[Guido]
> Maybe you can copy _strptime.py from Python 2.3 into Zope?  Then
> there's just a licensing issue.

I tried this.  It turns the 360 "no such thing as strptime" failures into
360 "global name 'enumerate' is not defined" failures <wink>.  IOW,
_strptime.py uses new-in-2.3 features.

That's easy to worm around, and then all these tests pass (on Win98SE).
Note that _strptime.py is a moving target, though, as at least two bugs have
been reported against it since 2.3a1 was released.

I'm happy to track that and keep the Zope3 version in synch, if that's the
way to resolve this one.  Jim, what say ye about the license issue?
(_strptime.py is under the PSF license, of course)