Issue 1382815: len() on class broken (original) (raw)
With the following python input:
class A: @classmethod def len(cls): return 12
print '1',A.len() print '2',A().len() print '3',len(A()) print '4',len(A)
The output always breaks for '4' with 'TypeError: len of unsized object'
Same result for @staticmethod or normal instance method declaration.