[ python-Bugs-1066438 ] datetime.replace method description error
SourceForge.net
noreply at sourceforge.net
Mon Nov 15 04:34:03 CET 2004
Bugs item #1066438, was opened at 2004-11-14 22:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1066438&group_id=5470
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Underwood (alpha264)
Assigned to: Nobody/Anonymous (nobody)
Summary: datetime.replace method description error
Initial Comment:
In the documentation for datetime.replace:
replace( year, month, day)
Return a date with the same value, except for those
members given new values by whichever keyword arguments
are specified. For example, if d == date(2002, 12, 31),
then d.replace(day=26) == date(2000, 12, 26).
http://www.python.org/doc/current/lib/datetime-date.html
As I understand the method, either the 2002 should be
2000, or the 2000 should be 2002. Regardless, they
should be the same year.
Brian
;p
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1066438&group_id=5470
More information about the Python-bugs-list
mailing list