Mercurial > hg > pyloader
view tests/objects.py @ 14:30979d82c95d
remove silly self-reference code for now
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 27 May 2011 18:43:14 -0700 |
parents | eb81d6943f2e |
children | 0bea5297c156 |
line wrap: on
line source
""" test objects """ def stringsort(*strings): return ''.join(sorted(''.join(strings))) class Foo(object): def __init__(self, a, b): self.factor = a*100 + b def __call__(self, number): return number * self.factor