python newbie

Paul Rubin http
Sat Nov 3 13:55:38 CET 2007

Duncan Booth <duncan.booth at invalid.invalid> writes:
> modules are not special in any way, except that you cannot subclass them. 
> Oops, sorry I got that wrong. Modules are not special in any way, they can 
> have methods as well as functions:

I've felt for a long time that you should be able to define __call__
on a module, but that doesn't seem to be allowed, at least if you
try it in the obvious way.

More information about the Python-list mailing list