[Python-Dev] Re: [Pythonmac-SIG] The versioning question...

Skip Montanaro skip at pobox.com
Tue Dec 28 14:23:59 CET 2004

    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()


More information about the Python-Dev mailing list