My editor (TextMate) shows id in another colour (when used as variable name) than my usual variable names. Is it a keyword? I don’t want to shade any keyword…
My editor (TextMate) shows id in another colour (when used as variable name) than
Share
idis not a keyword in Python, but it is the name of a built-in function.The keywords are:
Keywords are invalid variable names. The following would be a syntax error:
On the other hand, built-in functions like
idortypeorstrcan be shadowed: