Extract lines from file, add to new files

Chris Angelico rosuav at gmail.com
Thu Jan 11 18:56:37 EST 2024


On Fri, 12 Jan 2024 at 08:56, Left Right via Python-list
<python-list at python.org> wrote:
>
> By the way, in an attempt to golf this problem, I discovered this,
> which seems like a parser problem:

When you jump immediately to "this is a bug", all you do is make
yourself look like an idiot. Unsurprisingly, this is NOT a bug, this
is simply that you didn't understand what was going on. The grammar
isn't easy to read, and it's usually better to read the documentation
instead.

(Plus, golfing isn't really a goal in Python, and you didn't  shorten
the code by much at all. Good job.)

ChrisA


More information about the Python-list mailing list