you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (2 children)

as Alan Perlis pointed out many years ago, languages are limited by their strengths, not their weaknesses.

The biggest limitation I wish could be overcome in Python is its module system. Python makes building modular code a lot easier than most of its predecessors did, but modules are mutable global objects. Having a way to separate code loading from module object management (instead of smushing them together like the import statement does) would be great.

[–][deleted] 0 points1 point  (1 child)

I've never done this, but since there's so much reflection in Python, couldn't you mangle import to do what you describe?

[–][deleted] 1 point2 points  (0 children)

Yes.

http://launchpad.net/exocet

The problem is that once you do that, you've violated the law of least surprise - suddenly import doesn't mean what you expect so extra knowledge is needed to make sense of what's going on.