[ python-Bugs-658254 ] Accept None for time.ctime() and friends
SourceForge.net
noreply at sourceforge.net
Fri Jul 2 03:03:38 EDT 2004
Bugs item #658254, was opened at 2002-12-24 11:58
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=658254&group_id=5470
Category: Extension Modules
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Fred L. Drake, Jr. (fdrake)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Accept None for time.ctime() and friends
Initial Comment:
Several functions in the time module can have the time
value they operate on omitted to indicate the current
time, but they do not accept None as equivalent to
omitting the value. It should be equivalent.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-07-02 02:03
Message:
Logged In: YES
user_id=80475
Assigning back to Fred. I fully support the ipath on the
basis that it will make user code less complicated.
Blunk's patch had some minor review comments, but is
basically ready to go.
----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-09-10 10:45
Message:
Logged In: YES
user_id=3066
I generally expect that None should be accepted for an
omitted arg, but Guido has certainly never cared about that.
Given that no existing code passes None, it's ok to reject.
If the truth be told, though, the current situation
certainly complicates some existing code!
----------------------------------------------------------------------
Comment By: Christopher Blunck (blunck2)
Date: 2003-01-06 22:43
Message:
Logged In: YES
user_id=531881
see patch 663482
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=658254&group_id=5470
More information about the Python-bugs-list
mailing list