What is the maximum possible length of an identifier?

Hi, What is the maximum possible length of an identifier

There is no practical limit.

There is probably a technical limit due to the C implementation, which I
imagine is probably something like 2**31 characters.

In IronPython, the limit will be whatever limit the .Net runtime has; in
Jython the limit will be whatever limit the JVM has.

In practice, the limit is what people can read, not what the interpreter
can handle. The interpreter can easily handle millions of characters:

>>> name = 'abcdef'*1000000
>>> exec(name + ' = 42')
>>> eval(name)
42