Module rfc822 - uses file-objects - why?

Steve Purcell stephen_purcell at yahoo.com
Fri Feb 23 02:07:51 EST 2001


Aahz Maruch wrote:
> For performance:
> 
> try:
>     from StringIO import StringIO
> except ImportError:
>     from cStringIO import StringIO


Or for even better performance:   <wink>

 try:
     from cStringIO import StringIO
 except ImportError:
     from StringIO import StringIO

Pedantic, but someone might try it the other way round and post a bunch of
messages complaining that it's too slow...  :-)

-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Get servlets at http://pyserv.sourceforge.net/
"Even snakes are afraid of snakes." -- Steven Wright




More information about the Python-list mailing list