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.

Author vstinner
Recipients belopolsky, vstinner
Date 2011-05-01.22:04:16
SpamBayes Score 1.2649127e-09
Marked as misclassified No
Message-id <1304287456.24646.0.camel@marge>
In-reply-to <BANLkTikCLg7yT1grQDTr05eAQOudkR_OMg@mail.gmail.com>
Content
Le mardi 26 avril 2011 à 22:20 +0000, Alexander Belopolsky a écrit :
> Alexander Belopolsky <belopolsky@users.sourceforge.net> added the comment:
> 
> On Tue, Apr 26, 2011 at 6:09 PM, STINNER Victor <report@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.
History
Date User Action Args
2011-05-01 22:04:18vstinnersetrecipients: + vstinner, belopolsky
2011-05-01 22:04:17vstinnerlinkissue11930 messages
2011-05-01 22:04:16vstinnercreate