py3k feature proposal: field auto-assignment in constructors

Terry Reedy tjreedy at udel.edu
Tue Jan 29 04:58:52 CET 2008


"Steven D'Aprano" <steve at REMOVE-THIS-cybersource.com.au> wrote in message 
news:13pqd16n4o3rufe at corp.supernews.com...
| I don't like the name convention. _name already has a perfectly good
| convention: it's a private name, don't mess with it. That includes in
| function/method signatures. With your convention, _foo is public.

Since local names, including params are inaccesible outside a function, I 
don't see how the convention applies.  However, the underscore could just 
as well go at the end of the name.  There no current convention I know of 
with that.

tjr






More information about the Python-list mailing list