Fredrik Lundh wrote: > if you prefer to use a "parameters.value" syntax, you can wrap the resulting > dictionary in a class.
That sounds good. How do I do that?
> I assume "from" means "beneath" and "getcwd" means "walk" ?
Actually:
def superdirs(d):
lst = [d]
while d != os.environ["HOME"]:
(d, tl) = os.path.split(d)
lst += [d]
lst.reverse()
return lst
Joseph
--
http://mail.python.org/mailman/listinfo/python-list
