[ python-Bugs-1712236 ] __getslice__ changes integer arguments
SourceForge.net
noreply at sourceforge.net
Thu May 3 20:20:45 CEST 2007
Bugs item #1712236, was opened at 2007-05-03 21:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1712236&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: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Imri Goldberg (lorgandon)
Assigned to: Nobody/Anonymous (nobody)
Summary: __getslice__ changes integer arguments
Initial Comment:
When using slicing for a sequence object, with a user defined __getslice__ function, the arguments to __getslice__ are changed.
This does not happen when __getslice__is called directly.
Attached is some code that demonstrates the problem.
I checked it on various versions, including my
"Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)", on my Ubuntu machine.
Although __getslice__ is deprecated, there is still usage of the function, and a fix would be useful.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1712236&group_id=5470
More information about the Python-bugs-list
mailing list