slice objects vs. []

Fernando Pérez fperez528 at yahoo.com
Wed May 22 18:43:58 EDT 2002


Hans Nowak wrote:

>> The docs are a bit outdated, I think. They don't describe __getslice__,
>> which is what you want. Her's an example from my code:
> 
> [snip]
> 
> No, __getslice__ and friends are deprecated:
> 

Ah! I read up to the previous section only and went ahead with implementing 
__getslice__. My bad. Thanks,

f



More information about the Python-list mailing list