>>> import PythonCard >>> PythonCard.components.button Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'components'
>>> import my.deeply.nested.package.function as func # results in error
>>> import my.deeply.nested.package as package >>> package.function(...)
>>> from my.deeply.nested.package import function as func
And that requires me to rearrange the entire line, which is annoying. And as if that weren't enough trouble with Python's import mechanism, why in the heck couldn't they make the __import__ function "just work" like it's supposed to (i.e. col = __import__("sqlobject.col") should have the same effect as import sqlobject.col as col)?
Maybe the "std" object could be enhanced to fix that problem too. The only downside I can see here might be performance (try exploring std in Pyshell--it's a bit slow on my PIII 733 (then again, Eclipse is nearly useless on this machine)). On the positive side, it's much easier to explore the standard library this way, which is another thing I miss from Java. Eclipse allowed me to explore Java api's through the auto-complete feature, providing JavaDoc tooltips when available--very productive. But now I'm asking for a good IDE which is an entirely different subject. I guess I should check out PyDev again sometime.
Wow, I think you hit a sore spot there.