diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-07-18 04:41:36 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-07-18 04:41:36 (GMT) |
commit | caebe22038d4de526ab34cfda98047f01c53fc9d (patch) | |
tree | 89516e1fc318b0b292a3774e707106cebc8bbaf5 /Misc | |
parent | 4b7e35b530d06780ff905df2669ebdf892d6f75f (diff) | |
download | cpython-caebe22038d4de526ab34cfda98047f01c53fc9d.zip cpython-caebe22038d4de526ab34cfda98047f01c53fc9d.tar.gz cpython-caebe22038d4de526ab34cfda98047f01c53fc9d.tar.bz2 |
Fix bug #1520914. Starting in 2.4, time.strftime() began to check the bounds
of values in the time tuple passed in. Unfortunately people came to rely on
undocumented behaviour of setting unneeded values to 0, regardless of if it was
within the valid range. Now those values force the value internally to the
minimum value when 0 is passed in.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -27,6 +27,12 @@ Core and builtins Library ------- +- Bug #1520914: Change time.strftime() to accept a zero for any position in its + argument tuple. For arguments where zero is illegal, the value is forced to + the minimum value that is correct. This is to support an undocumented but + common way people used to fill in inconsequential information in the time + tuple pre-2.4. + - Patch #1220874: Update the binhex module for Mach-O. Extension Modules |