.0 in name

Paul Bryan pbryan at anode.ca
Fri May 13 17:23:42 EDT 2022


On Sat, 2022-05-14 at 00:47 +0800, bryangan41 wrote:

> May I know (1) why can the name start with a number?

The name of an attribute must be an identifier. An identifier cannot
begin with a decimal number.

> (2) where in the doc is it?!

https://docs.python.org/3/reference/lexical_analysis.html#identifiers

Paul



More information about the Python-list mailing list