[Python-Dev] Make _strptime only time.strptime implementation?
Kevin Jacobs
jacobs@penguin.theopalgroup.com
Fri, 9 May 2003 06:30:45 -0400 (EDT)
On Fri, 9 May 2003, Tim Peters wrote:
> As we left it, we were going to wait for the 2.3 alpha and beta testers to
> raise a stink if the new implementation didn't work out for them (you'll
> recall that the call to the platform strptime() is disabled in 2.3b1, via an
> unconditional
>
> #undef HAVE_STRPTIME
>
> in timemodule.c). Nobody has even cut a little gas yet, so I'd proceed
> under the assumption that nobody will, and that the disable HAVE_STRTIME
> code will be physically deleted. If that turns out to be wrong, big deal,
> you stay up all night fixing it under intense pressure <wink>.
Actually, I did, and on python-dev. strptime did not roundtrip correctly
with mktime on Linux. This made my application very unhappy, so I removed
all calls to strptime. Right now I don't have a vested interest in shooting
holes in the Python strptime, but I can't say I feel any warm fuzzies about
it. It seems hard to imagine that others will not run into similar
problems, regardless of the lack of specification for exactly how strptime
aught to work.
-Kevin
--
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19 E-mail: jacobs@theopalgroup.com
Fax: (216) 986-0714 WWW: http://www.theopalgroup.com