|
|
Log in / Subscribe / Register

Replacing AWK with Python in GCC?

Replacing AWK with Python in GCC?

Posted Jul 26, 2018 9:48 UTC (Thu) by jwilk (subscriber, #63328)
Parent article: Replacing AWK with Python in GCC?

There's no benefit of having polyglot Python programs. Just stick to one version (so Python 2 probably). Also, don't bother reading esr's FAQ; it's full of bad ideas.

But I imagine that AWK programs would be too verbose when rewritten in Python. Perl would be probably better choice.


to post comments

Replacing AWK with Python in GCC?

Posted Jul 26, 2018 19:36 UTC (Thu) by marcH (subscriber, #57642) [Link] (2 responses)

You forgot the content in your comment, you stopped after the introduction. It happens when people click "send" by mistake before they're finished, however it's a bit surprising on LWN which forces a "preview" step?

Replacing AWK with Python in GCC?

Posted Jul 26, 2018 19:43 UTC (Thu) by zdzichu (subscriber, #17118) [Link]

That may happen when you start writing, hit the preview button, then finish your comment and click “Publish comment”. It will publish the original preview.
You are supposed to push “Preview comment” *again* after making changes in textarea.

Replacing AWK with Python in GCC?

Posted Jul 26, 2018 20:10 UTC (Thu) by jwilk (subscriber, #63328) [Link]

I didn't forget anything. I'm sorry that you found my comment insufficiently contentful.

Replacing AWK with Python in GCC?

Posted Jul 28, 2018 21:05 UTC (Sat) by dvdeug (guest, #10998) [Link]

An obsolete version of Python that's already scheduled to be removed from cutting edge distros? Sounds problematic.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds