Bugs item #3370094, was opened at 2011-07-18 12:01
Message generated for change (Tracker Item Submitted) made by mferret
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=3370094&group_id=74338
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: mexicanferret (mferret)
Assigned to: Nobody/Anonymous (nobody)
Summary: reslicing SelectResults object leads to error
Initial Comment:
reslicing SelectResults object sometimes leads to error
Ex:
my_selection[0:10][0:20] will result in a "slice object is unsuscriptable" error
This is because of a typo in the sresults.py file line 156.
[code]if self.ops.get('end', None) is not None and value['end'] < end:[/code]
should be replaced by
[code]if self.ops.get('end', None) is not None and self.ops['end'] < end:[/code]
value is a slice object and is indeed unsuscriptable.
I attach the corrected file.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=3370094&group_id=74338
|