[issue11930] Remove time.accept2dyear
STINNER Victor
report at bugs.python.org
Mon May 2 00:04:18 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Le mardi 26 avril 2011 à 22:20 +0000, Alexander Belopolsky a écrit :
> Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
>
> On Tue, Apr 26, 2011 at 6:09 PM, STINNER Victor <report at bugs.python.org> wrote:
> ..
> >
> > timemodule.c:
> >
> > PyDoc_STRVAR(module_doc,
> > "...
> > The tuple items are:\n\
> > year (four digits, e.g. 1998)\n\
> > ...")
> >
> > => That's wrong. Example: time.gmtime(-55582200000).tm_year gives 208.
>
> This is wrong regardless of this patch. I don't mind fixing this,
> but it would be a different issue. Can you suggest a change? I would
> like the docstring to still inform the user that 1998 should be given
> as 1998 and not as 98. Maybe s/four/all/?
"year (e.g. 1998)\n" is enough.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11930>
_______________________________________
More information about the Python-bugs-list
mailing list