I am accepting the PEP. Congrats Yuri! (And others who feel they deserve it. :-)

On Fri, Jun 22, 2012 at 2:04 PM, Yury Selivanov <yselivanov...@gmail.com> wrote:
> On 2012-06-22, at 4:58 PM, Ethan Furman wrote:
>> That looks strange to me -- I suggest putting brackets around each one, like:
>>
>>   replace(*, [name=<optional>,] [kind=<optional>,] [default=<optional>,] 
>> [annotation=<optional>]) -> Parameter
>
> Isn't it too much?  The PEP clearly indicates '=<optional>' is just
> a notation for an optional parameter.
>
> If it's that much of an issue - We can use '=_void' instead, as it is
> in the implementation, and describe how it works.  But that's just noise,
> that will distract the reader from the PEP.
>
>> which is still a bit noisy.  At the risk of raising the ire of those who 
>> don't condone the use of '...' :)  how about:
>>
>>   replace(*, [name=...,] [kind=...,] [default=...,] [annotation=...]
>>            ) -> Parameter
>
> That may confuse someone, as ... - Ellipsis is a legitimate object
> to be used as a default value or annotation:
>
>     def foo(bar:...=...)->...:
>         pass
>
> I'd keep it simple ;)

Please leave <optional> in.

-- 
--Guido van Rossum (python.org/~guido)
_______________________________________________
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