summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-11-13 16:18:32 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-11-13 16:18:32 (GMT)
commitbbc0d4409c4edc43d9f9b38bff089fd63f43734a (patch)
treee6a74fe2b0266d8fd9ab8fea8f34f1092aef374c /Misc
parentfba73698240660d9154b6917b87dd333d6fb8284 (diff)
downloadcpython-bbc0d4409c4edc43d9f9b38bff089fd63f43734a.zip
cpython-bbc0d4409c4edc43d9f9b38bff089fd63f43734a.tar.gz
cpython-bbc0d4409c4edc43d9f9b38bff089fd63f43734a.tar.bz2
SF bug 1065388: calendar day/month name lookup too slow
__getitem__() methods: compute only the new spellings needed to satisfy the given indexing object. This is purely an optimization (it should have no effect on visible semantics).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ddcf030..b55da3e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,17 @@ Library
- ``doctest``'s new support for adding ``pdb.set_trace()`` calls to
doctests was broken in a dramatic but shallow way. Fixed.
+- Bug 1065388: ``calendar``'s ``day_name``, ``day_abbr``, ``month_name``,
+ and ``month_abbr`` attributes emulate sequences of locale-correct
+ spellings of month and day names. Because the locale can change at
+ any time, the correct spelling is recomputed whenever one of these is
+ indexed. In the worst case, the index may be a slice object, so these
+ recomputed every day or month name each time they were indexed. This is
+ much slower than necessary in the usual case, when the index is just an
+ integer. In that case, only the single spelling needed is recomputed
+ now; and, when the index is a slice object, only the spellings needed
+ by the slice are recomputed now.
+
- Patch 1061679: Added ``__all__`` to pickletools.py.
Build