Re: python newbie
- From: Bruno Desthuilliers <bdesth.quelquechose@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 04 Nov 2007 17:13:18 +0100
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')
???
.
- Follow-Ups:
- Re: python newbie
- From: Paul Rubin
- Re: python newbie
- References:
- python newbie
- From: Jim Hendricks
- Re: python newbie
- From: Bjoern Schliessmann
- Re: python newbie
- From: Bruno Desthuilliers
- Re: python newbie
- From: Hendrik van Rooyen
- Re: python newbie
- From: Steven D'Aprano
- Re: python newbie
- From: Duncan Booth
- Re: python newbie
- From: Paul Rubin
- Re: python newbie
- From: Duncan Booth
- Re: python newbie
- From: Paul Rubin
- Re: python newbie
- From: Paul Hankin
- Re: python newbie
- From: Paul Rubin
- python newbie
- Prev by Date: Re: python newbie
- Next by Date: Re: python newbie
- Previous by thread: Re: python newbie
- Next by thread: Re: python newbie
- Index(es):