module __call__

Fredrik Lundh effbot at telia.com
Tue Apr 18 23:50:59 CEST 2000


Dirck Blaskey <dirck at pacbell.net> wrote:
> Just a little GWIBNI....
>
> ...Gee-Wouldn't-It-Be-Nice-If...
>
> modules could def __call__():
>
> so you could call a module, i.e.
>
>     import StringIO
>     f = StringIO()

and

class myStringIO(StringIO):
    ...

would explode in your face.  lousy idea.

</F>





More information about the Python-list mailing list