[Python-bugs-list] [ python-Bugs-785113 ] Incorrect docstring on _strptime/LocaleTime

SourceForge.net noreply at sourceforge.net
Thu Aug 7 19:39:23 EDT 2003


Bugs item #785113, was opened at 2003-08-07 21:14
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=785113&group_id=5470

Category: None
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
>Assigned to: Brett Cannon (bcannon)
Summary: Incorrect docstring on _strptime/LocaleTime

Initial Comment:
In library file _strptime.py, class LocaleTime, the 
docstring is wrong for f_month and a_month.

(1)  They are full and abbreviated *month* names, not 
weekday names.
(2)  They are both lists, but require a length-12 object in 
the constructor.  (Documentation says 13 and 14 item 
lists.)

Change

        f_month -- full weekday names (14-item list; 
dummy value in [0], which
                    is added by code)
        a_month -- abbreviated weekday names (13-item 
list, dummy value in
                    [0], which is added by code)


To

        f_month -- full month names (13-item list; but 
dummy value in [0], is added by code)
        a_month -- abbreviated weekday names (13-item 
list, but dummy value in [0], is added by code)


Technically, this is a 2.2.1 candidate, but as a 
documentation only fix, I selected 2.3

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=785113&group_id=5470



More information about the Python-bugs-list mailing list