PEP suggestion: Uniform way to indicate Python language version
rocky
rocky at gnu.org
Sun Aug 21 23:37:32 EDT 2016
Sorry should have been:
assert sys.version_info >= (3,0)
On Sunday, August 21, 2016 at 11:30:11 PM UTC-4, Ben Finney wrote:
> rocky <rocky at gnu.org> writes:
>
> > The assertion should have been
> >
> > assert sys.version >= (3, 0)
>
> Perhaps you haven't tried any of these examples before presenting them?
>
> >>> import sys
> >>> assert sys.version >= (3, 0)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: unorderable types: str() >= tuple()
>
> Please make some working code before recommending it :-)
>
> --
> \ “I was the kid next door's imaginary friend.” —Emo Philips |
> `\ |
> _o__) |
> Ben Finney
More information about the Python-list
mailing list