slice object unpickable

Josiah Carlson jcarlson at uci.edu
Tue Nov 2 11:50:45 EST 2004


sdementen at hotmail.com (Sebastien de Menten) wrote:
> 
> Hi,
> 
> I wonder why the slice object is not pickable via pickle or cPickle.
> E.g.:

[snip slice pickling]

I don't know why clice pickling was disabled.

To get past it, why not just store the argument tuples that lead to
slices?  (sli.start, sli.stop, sli.step)

 - Josiah




More information about the Python-list mailing list