Re: nested structure with internal references

2009-09-28 Thread J Kenneth King
Hendrik van Rooyen hend...@microcorp.co.za writes: On Friday, 25 September 2009 19:11:06 Torsten Mohr wrote: I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s. The

Re: nested structure with internal references

2009-09-26 Thread Hendrik van Rooyen
On Friday, 25 September 2009 19:11:06 Torsten Mohr wrote: I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s. The lists and dicts can also contain int, float, string, ...

nested structure with internal references

2009-09-25 Thread Torsten Mohr
Hi, sorry for posting in german before, that was a mistake. I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s. The lists and dicts can also contain int, float, string, ...

Re: nested structure with internal references

2009-09-25 Thread akonsu
On Sep 25, 1:11 pm, Torsten Mohr tm...@s.netic.de wrote: Hi, sorry for posting in german before, that was a mistake. I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s.

Re: nested structure with internal references

2009-09-25 Thread Carl Banks
On Sep 25, 10:11 am, Torsten Mohr tm...@s.netic.de wrote: Hi, sorry for posting in german before, that was a mistake. I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s.

Re: nested structure with internal references

2009-09-25 Thread akonsu
put a (name, value) pair in each list element instead of just value and reference them by name, you can use uuid to generate names konstantin -- http://mail.python.org/mailman/listinfo/python-list

Re: nested structure with internal references

2009-09-25 Thread Kent Turbo
On Sep 25, 9:11 pm, Torsten Mohr tm...@s.netic.de wrote: I'd like to refer to another entry and not copy that entry, i need to know later that this is a reference to another entry, i need to find also access that entry then. The references only need to refer to entries in this structure. The