python newbie

Paul Rubin http
Sat Nov 3 18:00:24 EDT 2007


Paul Hankin <paul.hankin at gmail.com> 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')



More information about the Python-list mailing list