diff options
author | Thomas Wouters <thomas@python.org> | 2001-01-19 23:16:56 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2001-01-19 23:16:56 (GMT) |
commit | fe385251f429dccddeb212f5ad02c026fe4a6550 (patch) | |
tree | c344f920bb8584040a5fed80bbcab3baefdedb40 /Misc | |
parent | 5566c1ce36138bb3e91e0dac4d6694cfbb68f206 (diff) | |
download | cpython-fe385251f429dccddeb212f5ad02c026fe4a6550.zip cpython-fe385251f429dccddeb212f5ad02c026fe4a6550.tar.gz cpython-fe385251f429dccddeb212f5ad02c026fe4a6550.tar.bz2 |
Make the 'time' argument to the timemodule functions strftime, asctime,
ctime, gmtime and localtime optional, defaulting to 'the current time' in
all cases. Adjust docs, add news item. Also convert all argument-handling to
METH_VARARGS. Closes SF patch #103265.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -169,6 +169,10 @@ Core language, builtins, and interpreter Standard library +- In the time module, the time argument to the functions strftime, + localtime, gmtime, asctime and ctime is now optional, defaulting to + the current time (in the local timezone). + - The ftplib module now defaults to passive mode, which is deemed a more useful default given that clients are often inside firewalls these days. Note that this could break if ftplib is used to connect |