Re: When to use codecs vs. io module (Python 2.7 and higher)

2010-12-01 Thread Antoine Pitrou
On Wed, 01 Dec 2010 09:55:01 -0500 pyt...@bdurham.com wrote: > Python 2.7 or higher: Looking for reasons/scenarios where one > should use the codecs vs. io module. > > Are there use cases that favor one specific module over the other > module? > > My understanding is that the io module is much fa

When to use codecs vs. io module (Python 2.7 and higher)

2010-12-01 Thread python
Python 2.7 or higher: Looking for reasons/scenarios where one should use the codecs vs. io module. Are there use cases that favor one specific module over the other module? My understanding is that the io module is much faster than the codecs module (and can be used interchangably), but the codec