[Python-ideas] Make all keywords legal as an identifier

Nick Coghlan ncoghlan at gmail.com
Fri Apr 29 08:55:31 CEST 2011


On Fri, Apr 29, 2011 at 8:33 AM, Westley Martínez <anikom15 at gmail.com> wrote:
> I don't know about you guys but I've never needed a reserved word for a
> variable name, and if I did, I'd just append an _ to it.

"class" is the only one I have ever wanted to use, and "cls" is a
perfectly acceptable substitute in that case (other variants I have
seen are "klass" and "class_").

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list