[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_KEYWORD is likely the most common kind).

--
components: Library (Lib)
files: parameter-constructor.patch
keywords: patch
messages: 206490
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: Changing the signature for Parameter's constructor
versions: Python 3.5
Added file: http://bugs.python.org/file33183/parameter-constructor.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com