metapython

For small bits of advanced Python

Monday, October 10, 2011

Cartesian Product for Sets

›
(Python 2.x) This is a short one - there is a thread on Python-ideas mailing lista bout adding a cartesian product operation for SET types...
14 comments:
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 ...
‹
›
Home
View web version

About Me

jsbueno
View my complete profile
Powered by Blogger.