metapython
For small bits of advanced Python
Friday, January 28, 2011
Ordered Unit Tests
›
Due to the way classes are constructed in Python, and to how tests are grouped in classes when using the unittest module, ordinarily these t...
3 comments:
Monday, December 13, 2010
Interval Search
›
Not that "meta" but interesting: Someone popped up on Brazilian Python discussion list asking for ideas to optimize this search:...
Friday, December 3, 2010
Multiple contexts in 'With' statement: not just for 2.7 and 3.1
›
As you know one of the syntax inovations for Python 3.1 and 2.7 is teh possiblity of using multiple, different contexts in a single "w...
Wednesday, November 17, 2010
X-unzip - and peeping into it
›
Most of us already know the value of the zip function. (and xzip, in python2). Once in a while, there might be the need of "unzipping...
2 comments:
Thursday, November 11, 2010
"Selfless Python"
›
Proof of concept of Python methods using no explicit declaration of the parameter Self. I mean: class A: __metaclass__ = Selfless ...
60 comments:
Monday, November 8, 2010
Tail Recursion Elimination in Python
›
This, a while back, was maybe my first hack using introspection that I perceived as "wow, this is just fun". So, Tail Recursion ...
Saturday, November 6, 2010
Recursive Lambda Functions
›
This one I had presented at my talk at FISL in 2010: One interestign feature in some functional languages - not all - that is seemingly unav...
3 comments:
‹
›
Home
View web version