As part of messing with the parser for PEP 671, I've come across what
looks like a convention, but I'm not sure of the details.
Most AST nodes start with a capital letter: Expr, Name, BoolOp, etc.
Some don't: keyword, arg, withitem.
Is it true that the ones that don't start with a capital are the
Guido> To be clear, Sam’s basic approach is a bit slower for
single-threaded code, and he admits that. But to sweeten the pot he has
also applied a bunch of unrelated speedups that make it faster in general,
so that overall it’s always a win. But presumably we could upstream the
latter easily, sepa
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
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
Thanks Skip — nice to see some examples.
Did you try running the same code with stock Python?
One reason I ask is the IIUC, you are using numpy for the individual
vector operations, and numpy already releases the GIL in some
circumstances.
It would also be fun to see David Beezley’s example f
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