[egenix-users] mx.TextTools - pickling bug with UnicodeTagTable?
M.-A. Lemburg
mal at egenix.com
Thu Aug 2 19:33:57 CEST 2007
On 2007-08-02 18:20, Frank McIngvale wrote:
>> Traceback (most recent call last):
>> File "testPickleSegFault.py", line 24, in ?
>> print pickle.loads(s)
>> File "/usr/local/python-2.4-ucs2/lib/python2.4/pickle.py", line 1394,
>> in loads
>> return Unpickler(file).load()
>> File "/usr/local/python-2.4-ucs2/lib/python2.4/pickle.py", line 872,
>> in load
>> dispatch[key](self)
>> File "/usr/local/python-2.4-ucs2/lib/python2.4/pickle.py", line 1153,
>> in load_reduce
>> value = func(*args)
>> File "/home/lemburg/projects/mx/TextTools/__init__.py", line 17, in _TT
>> return TagTable(definition)
>> TypeError: tag table entry 0: conversion from Unicode to string failed
>>
>> I've never tried to pickle tag tables before :-) What's the use
>> case for this ?
>
>
> I'm adding/updating the support for mx.* types in xml.pickle (Gnosis_Utils)
> getting ready for a new release, and am including all types that have a
> copy_reg() in mx.*. But I suppose if no one has hit this before then I don't
> need to worry about it :-)
We'll add support for pickling UnicodeTagTables with the next
release (and of course fix the seg fault). Unfortunately, the
change is not as trivial as fixing the segfault.
Thanks,
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Aug 02 2007)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the egenix-users
mailing list