Paul Rubin a écrit :
> Paul Hankin <[EMAIL PROTECTED]> writes:
> 
>>I'm intrigued - when would you want a callable module?
> 
> 
> I think it would be nice to be able to say
> 
>    import StringIO
>    buf = StringIO('hello')
> 
> instead of
> 
>   import StringIO
>   buf = StringIO.StringIO('hello')

What's wrong with:

from StringIO import StringIO
buf = StringIO('hello')

???
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to