A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-December/050562.html below:

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

[Python-Dev] Re: [Pythonmac-SIG] The versioning question... [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()


Skip
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4