[Python-Dev] Autoloading? (Making Queue.Queue easier to use)

Guido van Rossum guido at python.org
Mon Oct 17 17:40:59 CEST 2005


On 10/17/05, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Ah well, another idea runs aground on the harsh rocks of reality.

I should point out that it's intentional that there are very few
similarities between modules and classes. Many attempts have been made
to unify the two, but these never work right, because the module can't
decide whether it behaves like a class or like an instance. Also the
direct access to global variables prevents you to put any kind of code
in the get-attribute path.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list