Issue 658254: Accept None for time.ctime() and friends (original) (raw)

Issue658254

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.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/37643

classification

Title: Accept None for time.ctime() and friends
Type: enhancement Stage:
Components: Extension Modules Versions:

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: blunck2, fdrake, rhettinger
Priority: normal Keywords:

Created on 2002-12-24 16:58 by fdrake, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (5)
msg13682 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-12-24 16:58
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.
msg13683 - (view) Author: Christopher Blunck (blunck2) Date: 2003-01-07 03:43
Logged In: YES user_id=531881 see patch 663482
msg13684 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2003-09-10 15:45
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!
msg13685 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-07-02 07:03
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.
msg13686 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-08-03 18:02
Logged In: YES user_id=3066 Fixed using portions of SF patch #663482 and new implementation and test patches. Doc/lib/libtime.tex 1.65 Lib/test/test_time.py 1.18 Misc/NEWS 1.1065 Modules/timemodule.c 2.144
History
Date User Action Args
2022-04-10 16:06:03 admin set github: 37643
2002-12-24 16:58:25 fdrake create