[Python-Dev] Re: Naming convention for AST types

2021-10-28 Thread Jeremiah Vivian
This is the convention according to my expertise: > PascalCase: subtype of a token type, cannot be used in a `rule_name[type]:` > definition in grammar > lower_snake_case: a token type PascalCase nodes are those used in the functions `_PyAST_*` (or one of the expression contexts), while lower_sna

[Python-Dev] Re: Naming convention for AST types

2021-10-28 Thread Jeremiah Vivian
Here's a short description: > PascalCase: used in `_PyAST_*` nodes > lower_snake_case: used in `*_ty` nodes ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/l

[Python-Dev] Re: Naming convention for AST types

2021-10-28 Thread Jeremiah Vivian
Sorry for the two replies, I didn't think the first one would be sent. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message a

[Python-Dev] Re: Naming convention for AST types

2021-10-29 Thread Larry Hastings
Hey, as public mailing list mistakes go, that one's pretty mild. //arry/ On 10/28/21 6:35 PM, Jeremiah Vivian wrote: Sorry for the two replies, I didn't think the first one would be sent. ___ Python-Dev mailing list -- python-dev@python.org To unsu