A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/007963.html below:

[Python-Dev] strftime()

[Python-Dev] strftime() [Python-Dev] strftime()Guido van Rossum guido@beopen.com
Sun, 06 Aug 2000 12:34:34 -0500
> [Jack Jansen]
> > The test_strftime regression test has been failing on the Mac for
> > ages, and I finally got round to investigating the problem: the
> > MetroWerks library returns the strings "am" and "pm" for %p but the
> > regression test expects "AM" and "PM". According to the comments in
> > the source of the library (long live vendors who provide it! Yeah!)
> > this is C9X compatibility.
> 
> My copy of a draft C99 std agrees (7.23.3.5) with MetroWerks on this point
> (i.e., that %p in the "C" locale becomes "am" or "pm").
> 
> > I can of course move the %p to the nonstandard expectations, but maybe
> > someone has a better idea?
> 
> Not really.  If Python thinks this function is valuable, it "should" offer a
> platform-independent implementation, but as nobody has time for that ...

No.  The test is too strict.  It should be fixed.

--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4