![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Hierarchy - how?
From: Heiko Wundram <me+python@modelnine.org>
Date: Sun Apr 30 2006 - 19:49:59 CEST
Am Sonntag 30 April 2006 19:26 schrieb veracon:
The following code does what you want:
>>>
data = """food
top = {}
print top
Making a function out of it is up to you. ;-)
--- Heiko.
|