Re: python newbie



Paul Rubin a écrit :
Paul Hankin <paul.hankin@xxxxxxxxx> 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')

???
.