Python 2.2, creating new types from base types

Mark McEahern marklists at mceahern.com
Thu Jan 17 17:51:46 EST 2002


This is somewhat of an orthogonal suggestion, but have you considered
writing a series of unit tests that verify the functionality/usage you're
looking for?

In other words, assume your class already existed.  What would usage of it
look like and what results would it produce?  That's something you can
(imho, should) codify into a unit test before you even begin implementation.

Cheers,

// mark





More information about the Python-list mailing list