Callable modules?

Fredrik Lundh fredrik at pythonware.com
Wed Jul 24 20:39:04 EDT 2002


Paul Rubin wrote:

> But that's another special trick, more hair to remember.  Why not just
> do the obvious thing and make modules work the same way as other objects?

you are confused.

have you tried calling other objects?

if you have, you might have noticed that very few
python objects allow you to call them.  some raise
an attribute error, but most objects raise a type
error.  module objects too.

</F>





More information about the Python-list mailing list