[Patches] [ python-Patches-663482 ] 658254: accept None for time.ctime() and friends
SourceForge.net
noreply@sourceforge.net
Sun, 06 Jul 2003 13:38:09 -0700
Patches item #663482, was opened at 2003-01-06 19:42
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=663482&group_id=5470
Category: Modules
>Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher Blunck (blunck2)
Assigned to: Nobody/Anonymous (nobody)
Summary: 658254: accept None for time.ctime() and friends
Initial Comment:
ctime(), gmtime(), and localtime() now support None and
treat it as tho you passed no arguments at all.
i am new to patching for py and am not sure if there
are unit tests i should update. please advise...
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2003-07-06 13:38
Message:
Logged In: YES
user_id=357491
What do people think of this functionality? I personally don't see a
need for it.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-07 14:33
Message:
Logged In: YES
user_id=33168
There don't appear to be any direct tests, but it would
still be nice to call the functions and verify they work ok.
You could compare that abs(ctime() - ctime(None)) < .5, for
example. Look in Lib/test/test_time.py.
Also, the docs need to be updated, see Doc/lib/libtime.tex.
That should be updated, ie change \optional(secs) with
\optional{secs\code{ = None}}. Also, an entry in Misc/NEWS
should be added since this is an API change.
There is no attached file.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=663482&group_id=5470