[Python-Dev] cpython (3.2): Avoid codec spelling issues by just using the utf-8 default.

Éric Araujo merwok at netwok.org
Fri May 6 19:42:11 CEST 2011

 Le 06/05/2011 00:52, Terry Reedy a écrit :
> On 5/5/2011 4:55 PM, Raymond Hettinger wrote:
>> Either way, the code is simpler by just using the default.
> I thought about this and decided that the purpose of having defaults 
> is
> so one does not have to always spell it out. So use it. Readers can
> always look it up and learn.

 Agreed.  I thought about something similar after Victor’s commit that 
 changed open(mode='rU') to use just 'r': Why not remove the mode 
 argument entirely when it is the default value?


More information about the Python-Dev mailing list