PEP suggestion: Uniform way to indicate Python language version
Chris Angelico
rosuav at gmail.com
Mon Aug 22 00:33:40 EDT 2016
On Mon, Aug 22, 2016 at 1:37 PM, rocky <rocky at gnu.org> wrote:
> Sorry should have been:
>
> assert sys.version_info >= (3,0)
The next question is: How common is code like this? I don't put
version checks in any of my modules. Adding magic comments would be of
value only if this sort of thing is common enough to need its own
syntax.
ChrisA
More information about the Python-list
mailing list