[Python-3000] [Python-ideas] Namespaces are one honking great idea -- let's do more of those!

Thomas Lee tom at vector-seven.com
Sun Feb 3 09:23:20 CET 2008


skip at pobox.com wrote:
>     Leif> There is already an idiom with other packages (pygtk etc.) that
>     Leif> suggests syntax like
>
>     Leif> try:
>     Leif>     python.require('3.1')
>     Leif> except:
>     Leif>     print('Some warning about version incompatibility')
>     Leif>     exit(1)
>
> It won't work in this case.  Compilation of the module might well fail
> because of Python2/Python3 syntax differences.
>
>   
Ah, of course. Scratch my last email. :)

Cheers,
T



More information about the Python-3000 mailing list