Extract lines from file, add to new files
Chris Angelico
rosuav at gmail.com
Sun Jan 14 07:32:10 EST 2024
On Sun, 14 Jan 2024 at 23:28, Left Right <olegsivokon at gmail.com> wrote:
> Having worked with a bunch of different grammar languages, the one
> used for Python isn't a recognizable BNF derivative.
That might possibly be because it isn't? It's not BNF. It's PEG. Or
are you a long way behind the times?
> For example, you may say "functions in Python are
> objects", but you cannot put a function definition in the head of the
> for loop clause.
What do you mean?
for x in lambda: ...:
...
Perfectly grammatical.
ChrisA
More information about the Python-list
mailing list