Copy with __slots__...will it ever work?
tim_one at email.msn.com
Fri Mar 28 05:38:06 CET 2003
> I've run up against the problem of not being able to call copy.copy()
> on a new-style class that defines __slots__.
If you can, try current CVS Python. Guido reworked a lot of this code after
the 2.3a2 release, as part of our introduction of a new pickle protocol.
New-style classes that define __slots__ can be pickled in current CVS
Python, and copy.copy() may have inherited relevant new abilities too.
> * Will copy.copy() ever work with __slots__? Is it in the pipe for a
> future version?
> * If not, why not? Is there a good technical reason? or just not
> enough demand?
Nobody who knows has time to write about this stuff. If you can't try it
yourself, please post specific examples you care about, and I'm sure someone
else <wink> will try them and report back.
if-it-were-obvious-you-wouldn't-have-asked-ly y'rs - tim
More information about the Python-list