[Python-Dev] pickling subclasses of types (Re: [Python-checkins]
CVS: python/dist/src/Lib xmlrpclib.py,1.11,1.12)
M.-A. Lemburg
mal@lemburg.com
Thu, 11 Oct 2001 10:02:20 +0200
Jeremy Hylton wrote:
>
> Incidentally, it looks like the XML-RPC code won't work with
> subclasses of built-in types. It's does dispatch on the type() of the
> object, but a subclass of string won't have type StringType. It seems to
> me, though, that it should be marshallable using XML-RPC.
You have a good point there: AFAIK, pickle and marshal both
do the same thing. Perhaps at least pickle should be adapted
to treat all objects like instances or at least treat subclasses
as instances so they make it across to the unpickling end (Guido,
perhaps you already have code in place which does this ?!).
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/