unicode as valid naming symbols

Mark H Harris harrismh777 at gmail.com
Tue Mar 25 20:24:11 CET 2014


On 3/25/14 1:52 PM, wxjmfauth at gmail.com wrote:
 >>>> '√'.isidentifier()
 > False
 >>>> 'λ'.isidentifier()
 > True


 > S.isidentifier() -> bool
 >
 > Return True if S is a valid identifier according
 > to the language definition.
 >>>>
 >
 > cf "unicode.org" doc

Excellent, thanks!

marcus



More information about the Python-list mailing list