module __call__

Dirck Blaskey dirck at pacbell.net
Tue Apr 18 21:45:48 CEST 2000


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()

instead of
    import StringIO
    f = StringIO.StringIO()

or
    from StringIO import StringIO
    f = StringIO()

Yes, it's a very little gwibni...

(Not-hip-enough-to-sign-with-an-adverb)

d






More information about the Python-list mailing list