module __call__

Dirck Blaskey dirck at pacbell.net
Tue Apr 18 15:45:48 EDT 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