Bugs item #1192536, was opened at 2005-04-29 16:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=1192536&group_id=6473
Category: DOM Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mark E (markenglish) Assigned to: Nobody/Anonymous (nobody) Summary: marshal.generic wont marshal new style classes Initial Comment: The generic marshaller will not marshal new style classes. Using Python 2.4 on Windows XP sp2 with PyXML 0.8.4 ---start code--- >>> class WillWork: ... pass ... >>> class WontWork(object): ... pass ... >>> will = WillWork() >>> wont = WontWork() >>> import xml.marshal.generic >>> xml.marshal.generic.dumps(will) '<?xml version="1.0"?><marshal><object id="i2" module="__main__" class="WillWork"><tuple></tuple><dictionary id="i3"></dictionary></object></marshal>' >>> xml.marshal.generic.dumps(wont) Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\Program Files\Python24\Lib\site- packages\_xmlplus\marshal\generic.py", line 59, in dumps L = [self.PROLOGUE + self.DTD] + self.m_root (value, dict) File "C:\Program Files\Python24\Lib\site- packages\_xmlplus\marshal\generic.py", line 104, in m_root L = ['<%s>' % name] + self._marshal(value,dict) + ['</%s>' % name] File "C:\Program Files\Python24\Lib\site- packages\_xmlplus\marshal\generic.py", line 92, in _marshal return getattr(self, meth)(value, dict) AttributeError: Marshaller instance has no attribute 'm_WontWork' ---end code--- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=1192536&group_id=6473 _______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig