28 Dec
2004
28 Dec
'04
8:23 a.m.
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