Hi Anto, On Fri, Feb 17, 2012 at 14:18, Antonio Cuni <anto.cuni at gmail.com> wrote: >>>>> def foo(x): > .... return foo.__len__() How about "return len(foo)" instead? That's even more natural as Python code. But I guess anyway that all three solutions get JIT-compiled to basically the same thing. A bientôt, Armin.