[docs] Bug in locale module docs

Timothy Pederick pederick at gmail.com
Wed Feb 2 16:20:15 CET 2011


The following text appears to be in error:

locale.ERA_D_FMT

Get a format string for strftime() to represent time in a locale-specific
era-based way.

(Note the mismatch between "D" in the constant name and "time" in its
description.)

This text is present in the same form in at least the 2.7, 3.1 and 3.2 docs.
Checking with Python 3.1.2, it would appear that both ERA_D_FMT and
ERA_T_FMT exist. Thus, the text should probably read something like:

locale.ERA_D_FMT

Get a format string for strftime() to represent a date in a locale-specific
era-based way.
 locale.ERA_T_FMT

Get a format string for strftime() to represent a time in a locale-specific
era-based way.

(The wording "a date", "a time" instead of just "time" is the same as that
used for the D_FMT and T_FMT constants earlier in the page.)

-- 
Tim Pederick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110202/0562e3d6/attachment.html>


More information about the docs mailing list