Mercurial > hg > pyloader
comparison tests/objects.py @ 13:eb81d6943f2e
add another dummy object
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 27 May 2011 07:22:40 -0700 |
parents | ff272dcd5cd8 |
children | 0bea5297c156 |
comparison
equal
deleted
inserted
replaced
12:d50d5237e82d | 13:eb81d6943f2e |
---|---|
2 test objects | 2 test objects |
3 """ | 3 """ |
4 | 4 |
5 def stringsort(*strings): | 5 def stringsort(*strings): |
6 return ''.join(sorted(''.join(strings))) | 6 return ''.join(sorted(''.join(strings))) |
7 | |
8 class Foo(object): | |
9 def __init__(self, a, b): | |
10 self.factor = a*100 + b | |
11 def __call__(self, number): | |
12 return number * self.factor |