PEP suggestion: Uniform way to indicate Python language version

Random832 random832 at fastmail.com
Mon Aug 22 02:08:23 EDT 2016


On Mon, Aug 22, 2016, at 02:03, Stefan Behnel wrote:
> 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.

Er, won't it rather stop behaving as desired when Python 10.0 comes out,
and resume when 30.0 does?



More information about the Python-list mailing list