Skip to the content

Low Code Life

Hacking away unnecessary LOCs since 1980.



A beautiful gem of code from the Python docs.

Author: smeans
Date: 2021-01-07
Tags: NamedTuples, Python, Regex, Tokenizers
Categories: Beautiful Code

So once again I found myself looking at the documentation for the Python re module, trying to remember the difference between matches and matching groups and I saw a code snippet that was so beautiful that I wanted to break it down and share it. It’s a fully-functional mini-language tokenizer in only 41 lines of … Read More


Recent Comments

    Archives

    • June 2022
    • March 2022
    • February 2022
    • January 2022
    • August 2021
    • July 2021
    • May 2021
    • February 2021
    • January 2021

    Categories

    • Beautiful Code
    • Code
    • FOSS
    • Fun Code
    • Software Development
    • Useful Code
    • Website

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    © 2023 Low Code Life. All rights reserved. Powered by WordPress.