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-17 18:11

I always thought that Python should resolve name errors of dotted components by attempting to import the module to the left of the dot. It's still explicit because you're typing the name of the module out, it just avoids the superfluous use of 'import' statements.

I wish there was a way to trap NameError exceptions, do that import, and reinvoke the interpreter at that point. You can do shit like that in Lisp, but GWEEDO doesn't seem to get the concepts required to make something like that possible.

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