Message329018
| 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:42 | davide moro | set | recipients:
+ davide moro, eric.araujo, dstufft |
| 2018年10月31日 22:28:42 | davide moro | set | messageid: <1541024922.77.0.788709270274.issue35129@psf.upfronthosting.co.za> |
| 2018年10月31日 22:28:42 | davide moro | link | issue35129 messages |
| 2018年10月31日 22:28:42 | davide moro | create |
|