![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveHierarchy - how?
From: veracon <veracon@gmail.com>
Date: Sun Apr 30 2006 - 19:26:36 CEST
I'd like to know how to make the following string:
Result in a dictionary like this:
Or something like that (if you understand). What would be the best way
Actually, if anyone has a better idea of how to do the entire thing,
return out
def which_parent(data, parent):
data = (('food', ''),
print hierarchy(data)
-- Keep in mind that I don't want a string, I want a dictionary (but I
|