Terry,

On January 21, 2014 at 12:23:31 PM, Terry Reedy (tjre...@udel.edu) wrote:
> > On 1/21/2014 10:59 AM, Yury Selivanov wrote:
> > There is one more, hopefully last, open urgent question with  
> the signature
> > object. At the time we were working on the PEP 362, PEP 457 didn’t  
> > exist. Nor did we have any function with real positonal-only  
> parameters,
> > since there was no Argument Clinic yet. However, I implemented  
> > rudimentary support for them:
> >
> > “Parameter.POSITIONAL_ONLY” constant;
> >
> > “Signature.bind” and “Signature.bind_partial” fully support  
> functions
> > with positional-only parameters;
> >
> > “Signature.__str__” renders them distinctively from other  
> kinds.
> >
> > The last point is the troublesome now. "Signature.__str__”  
> renders
> > positional-only parameters in ‘<>’ brackets, so in:
> >
> > foo(, , baz)
>  
> This amounts to a hidden new API.

Yes, and no. This wasn’t documented and until 3.4 we had no real-world
positonal-only parameters. So I think it’s OK to fix this now.

Yury
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to