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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to