PEP suggestion: Uniform way to indicate Python language version
Stefan Behnel
stefan_ml at behnel.de
Mon Aug 22 02:10:35 EDT 2016
Stefan Behnel schrieb am 22.08.2016 um 08:03:
> Steven D'Aprano schrieb am 22.08.2016 um 07:35:
>> if sys.version < '3':
>> import mymodule2 as mymodule
>> else:
>> import mymodule3 as mymodule
>
> This condition is going to fail when Python 30.0 comes out.
Oh, sorry - make that Python 10.0, that's way closer! See? I got it wrong
because I failed to understand your hugely obfuscated code! ;)
Stefan
More information about the Python-list
mailing list