[ python-Bugs-1697820 ] __getslice__ still used in built-in types
SourceForge.net
noreply at sourceforge.net
Thu Apr 12 20:34:26 CEST 2007
Bugs item #1697820, was opened at 2007-04-10 12:06
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1697820&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Torsten Bronger (bronger)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: __getslice__ still used in built-in types
Initial Comment:
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."""
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2007-04-12 13:34
Message:
Logged In: YES
user_id=80475
Originator: NO
Sensible suggestion.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1697820&group_id=5470
More information about the Python-bugs-list
mailing list