]> granicus.if.org Git - python/commit
Fix variable/format-char discrepancy in new-style class __getitem__,
authorThomas Wouters <thomas@python.org>
Fri, 21 Apr 2006 11:26:56 +0000 (11:26 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 21 Apr 2006 11:26:56 +0000 (11:26 +0000)
commit4e908107b04b0f4dc64cca89d4a20819e0987620
treecc26524b1ec49f7b136802a36786348f95db5093
parent64ed043c9ada5be6c9a74c72e18f8fd14d696a30
Fix variable/format-char discrepancy in new-style class __getitem__,
__delitem__, __setslice__ and __delslice__ hooks. This caused test_weakref
and test_userlist to fail in the p3yk branch (where UserList, like all
classes, is new-style) on amd64 systems, with open-ended slices: the
sys.maxint value for empty-endpoint was transformed into -1.
Objects/typeobject.c