]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
This checkin backport two checkins by Skip.
authorMichael W. Hudson <mwh@python.net>
Sat, 16 Mar 2002 18:01:05 +0000 (18:01 +0000)
committerMichael W. Hudson <mwh@python.net>
Sat, 16 Mar 2002 18:01:05 +0000 (18:01 +0000)
commit2e6cc334aa9175b090ae97691e7d4f5d46a87a42
treedbb3ab1a3a23d96a5dceb3ec57ab51d5c2c2e777
parent023db775f7efc5598a823fc43dc2cc3e401bcda1
This checkin backport two checkins by Skip.

backport montanaro's checkin of
    revision 1.24 of calendar.py

make _localized_name instances work more like the tuples they replaced.  In
particular, negative indexes work and they are limited by the actual length
of the names they represent (weekday and month names).  This closes bug
#503202.

[and then]

Corrected _localized_name.__getitem__ based on code in patch 503202 (which I
thought was just a bug report, so didn't notice - doh!).  This handles
slicing, which v 1.23 didn't.
Lib/calendar.py