how to deepcopy a slice object?
Duncan Booth
duncan.booth at invalid.invalid
Tue Aug 15 06:30:21 EDT 2006
Simon Forman wrote:
> Why would you want to [deep]copy a slice object?
I would guess the original poster actually wanted to copy a data structure
which includes a slice object somewhere within it. That is a perfectly
reasonable albeit somewhat unusual thing to want, however it doesn't work.
Similarly in Python 2.4 you cannot deepcopy functions. That has been fixed
in Python 2.5 but I guess nobody has tried deepcopying slices before so
they haven't been fixed.
More information about the Python-list
mailing list