I've used a double leading underscore on the name. Works great for methods!
On 5/2/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Benji York" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I've not followed the PEP 3102 (keyword-only arguments) discussion > > closely enough to know if this has been mentioned, but we were > > discussing a need at work today for the ability to enforce position-only > > arguments. > > You could discourage name use by not documenting the actual, internal name > of the parameters. Something like > > def weather_guess(temp, pres): > '''Guess weather from temperature in degrees Kelvin and pressure > in millibars passed by position in that order.''' > > Terry Jan Reedy > > > > _______________________________________________ > 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/guido%40python.org > -- --Guido van Rossum (home page: http://www.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