[oclug] my tree.py commentary
Dan York
dyork at e-smith.com
Tue Apr 10 10:11:03 EDT 2001
Tom,
Thanks for the very interesting commentary... it's great to learn
from others.
> In Dan York's tree.py:
> from os.path import *
> I didn't know you could do that. ("from foo.bar import"..)
Actually, for whatever reason, "os" and "os.path" are two distinctly
*separate* python modules. So by doing:
from os.path import *
I'm just following the standard:
from module import *
I could have been (and often am in other python programs) more
precise by specifying *exactly* which functions I was importing from
'os.path'... but I wasn't 100% sure which ones I would need and
didn't really take the time to button everything down tightly.
A curiousity would be to see if there is any difference at all in
timing if I did 'from os.path import x,y,z' versus
"from os.path import *" Something to test someday...
> I also found it interesting how similar most entries were, I guess we
> found all found the logical way to do things.
Yes, it *was* interesting to see how similar... yet at the same
time how different we think.
Cool stuff!
Dan
--
Dan York, Director of Training dyork at e-smith.com
Ph: +1-613-751-4401 Mobile: +1-613-263-4312 Fax: +1-613-564-7739
e-smith, inc. 150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ open source, open mind
More information about the OCLUG
mailing list