[Python-ideas] Positional only arguments

George Sakkis george.sakkis at gmail.com
Wed May 16 18:25:05 CEST 2007


On 5/16/07, Benji York <benji at zope.com> wrote:

> Guido van Rossum wrote:
> > Personally, when I really wanted this, I've given the arguments names
> > like __foo.
>
> That could be enshrined as the syntax, much like "private" attributes.

What's the future of "private" attributes in Py3K ? I remember Raymond
Hettinger bringing up a challenge on c.l.py about a decorator that
could replace the double underscore mangling and Michele Simionato
caming up with a bytecode hack that showed it is possible.

If they're staying though, +epsilon for blessing __args as
positional-only (for some positive epsilon ;-)).

George

-- 
"If I have been able to see further, it was only because I stood on
the shoulders of million monkeys."



More information about the Python-ideas mailing list