On Wed, 5 Aug 2009 06:01 am kj wrote: > In <[email protected]> Steven > D'Aprano <[email protected]> writes: > >>class ConstantNamespace(dict): > <snip> > >>I also have a series of unit tests for it if you're interested in them. > > Actually, come to think of it, I think I'll take you up on this. > I'd love to see those tests. Unit testing in Python is in area I > need to work on.
No problem. Here you go: http://www.cybersource.com.au/users/steve/python/constants.py Comments welcome. -- Steven -- http://mail.python.org/mailman/listinfo/python-list
