how does import work ?
Wojtek Walczak
gminick at hacker.pl
Thu Nov 21 10:34:00 EST 2002
Dnia 20 Nov 2002 11:59:24 -0800, Michele Simionato napisał(a):
>> > Suppose now I import ONLY the function f2, but not f1:
>> >>>> from f1f2 import f2
>> That's basically equivalent to:
>> import f1f2
>> f2 = f1f2.f2
>> del f1f2
[...]
> Thanks, now it is clear.
If you want more, take a look at:
<http://py-howto.sourceforge.net/doanddont/node2.html>
and
<http://www.python.org/doc/current/lib/built-in-funcs.html>
HTH.
--
[ ] gminick (at) underground.org.pl http://gminick.linuxsecurity.pl/ [ ]
[ "Po prostu lubie poranna samotnosc, bo wtedy kawa smakuje najlepiej." ]
More information about the Python-list
mailing list