[Python-Dev] cpython (3.2): Avoid codec spelling issues by just using the utf-8 default. (original) (raw)
Éric Araujo merwok at netwok.org
Fri May 6 19:42:11 CEST 2011
- Previous message: [Python-Dev] cpython (3.2): Avoid codec spelling issues by just using the utf-8 default.
- Next message: [Python-Dev] cpython (merge 3.2 -> default): Avoid codec spelling issues by just using the utf-8 default.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
Regards
- Previous message: [Python-Dev] cpython (3.2): Avoid codec spelling issues by just using the utf-8 default.
- Next message: [Python-Dev] cpython (merge 3.2 -> default): Avoid codec spelling issues by just using the utf-8 default.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]