[Python-checkins] python/dist/src/Misc NEWS,1.1187,1.1188

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sat Nov 13 17:18:35 CET 2004


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1137/Misc
Modified Files:
	NEWS 
Log Message:
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).
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1187
retrieving revision 1.1188
diff -u -d -r1.1187 -r1.1188
--- NEWS	8 Nov 2004 22:07:37 -0000	1.1187
+++ NEWS	13 Nov 2004 16:18:32 -0000	1.1188
@@ -32,6 +32,17 @@
 - ``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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /