rekkufa wrote:
I am currently building a system for serializing python objects
to a readable file-format, as well as creating python objects by
parsing the same format. It is more or less complete except for
a single issue I just cannot figure out by myself: How to load
data that
Mel wrote:
rekkufa wrote:
[ ... ]
How to load
data that specifies immutables that recursively reference
themselves.
I can imagine a C function that might do it.
[ ... ]
Here's something that works, in the sense of creating a tuple
containing a self-reference. I don't know how dangerous it
Mel wrote:
...
Here's something that works, in the sense of creating a tuple
containing a self-reference. I don't know how dangerous it realliy is
...
Thanks for the testing. Given the unknown dangers that might (or might not)
lurk with these things, the fact that recursive tuples are never
On Sat Nov 24 00:19:20 CET 2007, Steven D'Aprano wrote:
You mean like pickle? (Pardon me for telling you something you may
already know, but then you may not already know it...)
The serializer I am writing has very different goals, way beyond just the
serializing bit, human readability being
On Fri, 23 Nov 2007 16:43:28 -0600, rekkufa wrote:
I am currently building a system for serializing python objects to a
readable file-format, as well as creating python objects by parsing the
same format.
You mean like pickle? (Pardon me for telling you something you may
already know, but