Might wanna try my little project, though I am not sure if it will work:
http://code.google.com/p/pyturbojson/

2011/11/7 Emanuele <[email protected]>

> Hi,
>
> I'm really new to pyglet and I'd like to know how to copy.deepcopy()
> or pickle
> a VertexList and how to restore it at a later stage.
>
> Up to now I observe this behavior (assume 'a' is a VertexList object):
>
> In [112]: copy.deepcopy(a)
> [....very long....]
> TypeError: instancemethod expected at least 2 arguments, got 0
>
> In [115]: pickle.dump(a, open('/tmp/test.pickle','w'))
> [....very long....]
> TypeError: can't pickle instancemethod objects
>
> Is there a way to store a VertexList instance for re-use at a later
> stage?
>
> Best,
>
> Emanuele
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pyglet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to