TLDR Web Dev · MISCELLANEOUS

PYTHON'S PREPROCESSOR

pydong.org15 min read

Summary from the TLDR Web Dev newsletter

Python has a powerful preprocessor that allows users to extend its functionality in unexpected ways, despite the common misconception that it lacks one. It uses custom codecs and path configuration files, allowing the interpreter to interpret code written in different languages. This article explores various examples, such as adding unary increment/decrement operators, interpreting C/C++ code using cppyy, and validating TOML files with jsonschema.