Issue 1697820: getslice still used in built-in types (original) (raw)

Issue1697820

Created on 2007-04-10 17:06 by bronger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg31748 - (view) Author: Torsten Bronger (bronger) Date: 2007-04-10 17:06
In the Python language reference <http://docs.python.org/ref/sequence-methods.html>, after the sentence """Deprecated since release 2.0. Support slice objects as parameters to the __getitem__() method.""" I suggest the following addition: """However, built-in types in CPython currently still implement __getslice__. Therefore, you have to override it in derived classes when implementing slicing."""
msg31749 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2007-04-12 18:34
Sensible suggestion.
msg55204 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-08-23 20:35
Fixed in rev. 57343.
History
Date User Action Args
2022-04-11 14:56:23 admin set github: 44825
2007-08-23 20:35:14 georg.brandl set status: open -> closedassignee: rhettinger -> georg.brandlresolution: fixedmessages: + nosy: + georg.brandl
2007-04-10 17:06:27 bronger create