New classes, __slots__, __dict__
Michael Hudson
mwh at python.net
Fri Apr 12 05:41:14 EDT 2002
mertz at gnosis.cx (David Mertz, Ph.D.) writes:
> | Also, my admittedly simpleminded thought is that if handling slots
> | is a 2-liner, why doesn't pickle.py just do that? I have to believe that
> | the pickle authors are smart people and there is some deep technical
> | reason why getstate MUST exist if slots are used, and not just that the
> | pickle authors were too lazy and punted.
>
> So what do you think... smart people who wrote pickle? What's wrong
> with the (slightly-more-than-two) line solution? What is the deep
> technical mojo that argues against this approach?
Time to read python-dev archives, I think.
Start here:
http://mail.python.org/pipermail/python-dev/2002-February/020072.html
Then read this thread
http://mail.python.org/pipermail/python-dev/2002-February/020129.html
HTH,
M.
--
I would hereby duly point you at the website for the current pedal
powered submarine world underwater speed record, except I've lost
the URL. -- Callas, cam.misc
More information about the Python-list
mailing list