Eric> Unless you are doing comparison tests, where it would be nice to
Eric> be able to state in a generic way that the new implementation
Eric> should not change answers. May be something like:
Eric> import spam[1] as spamnext # next version
Eric> import spam[0] as spamnow # current version
Eric> assert spamnow.Ni() == spamnext.Ni()
>From the Zen of Python I quote:
Namespaces are one honking great idea -- let's do more of those!
import spam.v1 as spamnext
import spam.v0 as spamnow
assert spamnow.Ni() == spamnext.Ni()
Skip
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com