Message179002
Eli Bendersky wrote on Thu, Jan 03, 2013 at 14:44:02 +0000:
> On Tue, Jan 1, 2013 at 2:56 PM, Daniel Shahaf <report@bugs.python.org>wrote:
> > I added the "_elementtree" to the tp_name in order to bypass the above
> > error. Module-qualified names were in use elsewhere (including by
> > _elementtree._element_iterator) so it seemed reasonable. I'll defer to
> > you about compatibility implications of this change.
>
> I asked on pydev, but this is a key point to resolve. Can
> pickling/unpickling be made to work correctly without such (or similar)
> change at all? How will the unpickler know which module to load when it
> sees a pickled object of Element type?
Is there a requirement that it loads a particular module? Would etree
users notice the difference if pickle.load() returns an instance of the
"other" Element implementation than the one they pickled?
> Danial, could you investigate if such a change is absolutely required to
> make pickling/unickling of Element work?
Yes, I'll look into that. |
|
Date |
User |
Action |
Args |
2013-01-04 02:09:37 | danielsh | set | recipients:
+ danielsh, georg.brandl, jcea, larry, ezio.melotti, Arfrever, eli.bendersky, skrah, flox, santoso.wijaya, python-dev, einarfd |
2013-01-04 02:09:37 | danielsh | link | issue16076 messages |
2013-01-04 02:09:36 | danielsh | create | |
|