Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python

Name: Anonymous 2009-04-17 8:31

Whats the thing with import blah.blah.blah
Can't they just include it by default and use only the called functions? It is an interpreter. Not C++ where this is useful.

Name: Anonymous 2009-04-20 17:11

>>39
The point is that import is executed like any other statement, it's not just a declaration. For example:


C:\> copy con test1.py

print "rancid"
import test2
print "indeed"

^Z
        1 file(s) copied.

C:\> copy con test2.py

print "cocks"

^Z
        1 file(s) copied.

C:\> python test1.py
rancid
cocks
indeed

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List