homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author davide moro
Recipients davide moro, dstufft, eric.araujo
Date 2018年10月31日.22:28:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541024922.77.0.788709270274.issue35129@psf.upfronthosting.co.za>
In-reply-to
Content
I noticed that with the python2.7 version of distutils.version.LooseVersion let you compare '7' with 'xp' without exceptions (e.g., LooseVersion('7') > LooseVersion('xp')).
If you do the same with python3.6 or python3.7, you'll get the following exception:
* TypeError: '<' not supported between instances of 'int' and 'str'
You can see the full example with complete traceback and differences between python2.x and python3.x here:
* https://pastebin.com/kAwUTihe
Thanks,
davide
History
Date User Action Args
2018年10月31日 22:28:42davide morosetrecipients: + davide moro, eric.araujo, dstufft
2018年10月31日 22:28:42davide morosetmessageid: <1541024922.77.0.788709270274.issue35129@psf.upfronthosting.co.za>
2018年10月31日 22:28:42davide morolinkissue35129 messages
2018年10月31日 22:28:42davide morocreate

AltStyle によって変換されたページ (->オリジナル) /