[issue20011] Changing the signature for Parameter's constructor

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: I don't think this is a good idea, as it would require those who read with the code to know about this default. Explicit is definitely better than implicit in this case. -- nosy: +yselivanov resolution: -> rejected status: open -> closed

[issue20011] Changing the signature for Parameter's constructor

2013-12-18 Thread Antony Lee
Antony Lee added the comment: Nobody replied so far... https://mail.python.org/pipermail/python-ideas/2013-December/024538.html -- ___ Python tracker ___

[issue20011] Changing the signature for Parameter's constructor

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Can you provide a link to the python-ideas discussion, please? -- nosy: +r.david.murray ___ Python tracker ___

[issue20011] Changing the signature for Parameter's constructor

2013-12-17 Thread Antony Lee
New submission from Antony Lee: As suggested on python-ideas, this small patch changes the constructor of inspect.Parameter so that "kind" defaults to "POSITIONAL_OR_KEYWORD", which should make code that needs to construct Parameter objects slightly less verbose (as I believe POSITIONAL_OR_KEY