RE: Recursive loading trouble for immutables

2007-11-25 Thread rekkufa
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 go

Re: Recursive loading trouble for immutables

2007-11-25 Thread Mel
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 danger

Re: Recursive loading trouble for immutables

2007-11-25 Thread Mel
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 spec

RE: Recursive loading trouble for immutables

2007-11-23 Thread rekkufa
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 bein

Re: Recursive loading trouble for immutables

2007-11-23 Thread Steven D'Aprano
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

Recursive loading trouble for immutables

2007-11-23 Thread rekkufa
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 specifies immutables that recu