Author danielsh
Recipients Arfrever, danielsh, einarfd, eli.bendersky, ezio.melotti, flox, georg.brandl, jcea, larry, python-dev, santoso.wijaya, skrah
Date 2013-01-08.06:31:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357626709.05.0.992286878531.issue16076@psf.upfronthosting.co.za>
In-reply-to
Content
New iteration.

Open issues:

- Share code with the init method.  The issue with sharing code with either element_init() or create_new_element() would be malloc+realloc: unlike either of these methods, we know both the attributes and the number of children at allocation time, so we can allocate directly the right number of children.

- C<->Py Interchangeable pickling of TreeBuilder (per above msg).

Differences to previous version:

- Skip C<->Py interchangeability testing of TreeBuilder --- because that one started failing with:
  _pickle.UnpicklingError: state is not a dictionary
  It can probably be fixed, but I'd like to address the above question about pickling the factory first.

- Use __getstate__ rather than __reduce__ for Element.

- Make Element pickling interchangeable between c/py Element
  (set tp_name to "xml.etree.ElementTree.Element" and match the
  pickled format).
History
Date User Action Args
2013-01-08 06:31:50danielshsetrecipients: + danielsh, georg.brandl, jcea, larry, ezio.melotti, Arfrever, eli.bendersky, skrah, flox, santoso.wijaya, python-dev, einarfd
2013-01-08 06:31:49danielshsetmessageid: <1357626709.05.0.992286878531.issue16076@psf.upfronthosting.co.za>
2013-01-08 06:31:49danielshlinkissue16076 messages
2013-01-08 06:31:48danielshcreate