This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: locale documentation describes non-existing ERA_YEAR constant
Type: Stage: needs patch
Components: Documentation Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: belopolsky, docs@python, georg.brandl
Priority: normal Keywords: easy

Created on 2010-07-27 04:09 by belopolsky, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg111683 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-07-27 04:09
Grepping through the source tree, reveals a single match for ERA_YEAR:

Doc/library/locale.rst:247:   .. data:: ERA_YEAR

Google search for it shows an OpenSolaris bug report that explains the origin of this constant:

"""
There appears to be an IBM-private field in _LC_time_t struct, 
era_year.   We should remove "era_year" from the _LC_time_t struct.  
This should only affect the LC_TIME functions, localedef 
command, and locale objects.  (nl_langinfo and langinfo.h are
unaffected because they don't reference era_year.) 
"""

I believe this entry should simply be removed.
msg111943 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-07-29 14:49
Thanks, fixed in r83232.
History
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53634
2010-07-29 14:49:16georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg111943

resolution: fixed
2010-07-27 04:09:14belopolskycreate