Tag Archive: Python

Fun While Avoiding Lambda (Python)

Readers, meet X. X is a class I wrote in Python as an alternative to using lambda. It has two main features: It acts as an identity function ( so X(3) == 3, etc. ) When performing operations on it, it returns a new class... View Article

13 Comments

Namespaces in Python – Revisited

Taking a short break from my artwork craze (but I promise more is to come), I reviewed some of the new features and changes in Python, brought by versions 2.6 and 3.0. There are many interesting features, but a very specific one caught my eye:... View Article

Reply

Python Parsing Ep. II: Antlr Issues

Continuing that post. Before I go on, I wish to make 2 corrections to the code provided in the last post: I think that the grammar for COMMENT is incorrect (in the original too). It requires comments to always end with a new-line. I changed... View Article

Reply