Loic Dachary <[EMAIL PROTECTED]> writes:
> proppy <[EMAIL PROTECTED]> writes:
>
> > Did someone on the list experienced the same issues ?
>
> Nope. That calls for a fixture, I think.
>>> import simplejson
>>> print simplejson.JSONEncoder.__doc__
Advices the following:
To extend this to recognize other objects, subclass and implement a
``.default()`` method with another method that returns a serializable
object for ``o`` if possible, otherwise it should call the superclass
implementation (to raise ``TypeError``).
Subclassing JSONEncoder into packets.py, and implementing default() to
return o.__dict__, should do the trick.
--
bou ^
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users