How can get Python isidentifer() functionality in Python 2.6?

Posted by Douglas De Couto on Stack Overflow See other posts from Stack Overflow or by Douglas De Couto
Published on 2010-03-30T12:14:29Z Indexed on 2010/03/30 12:23 UTC
Read the original article Hit count: 750

Python 3 has a string method called str.isidentifier

How can I get similar functionality in Python 2.6, short of rewriting my own regex, etc.?

© Stack Overflow or respective owner

Related posts about python

Related posts about identifier