[Python-Dev] [Python-checkins] cpython (2.7): #14804: Remove [] around optional arguments with default values (original) (raw)

Hynek Schlawack hs at ox.cx
Tue May 22 14:38:01 CEST 2012


Hi Nick,

Mostly just mechanical removal of []. In some rare cases I've pulled the default value up into the argument list. Be a little careful with this - "[]" is the right notation when the function doesn't support keyword arguments. At least one of the updated signatures is incorrect:

Ah dang, thanks for pointing this out! I went at least five times through all changes but there had to be one thing I missed. :(

Same in dl.open() & ossaudiodev.oss_audio_device.setparameters(). I will go through them all once more and fix it at the latest tomorrow.

Regards, Hynek



More information about the Python-Dev mailing list