Author steven.daprano
Recipients davide moro, dstufft, eric.araujo, steven.daprano
Date 2018-10-31.22:49:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541026158.54.0.788709270274.issue35129@psf.upfronthosting.co.za>
In-reply-to
Content
There is no need to split the relevant code into a third-party website, especially when it is so small and can be included in-line here.


Python 2.7:

py> import distutils.version
py> distutils.version.LooseVersion('7') > distutils.version.LooseVersion('XP')
False




Python 3.6:

py> import distutils.version
py> distutils.version.LooseVersion('7') > distutils.version.LooseVersion('XP')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/storage/python/Python-3.6.4/Lib/distutils/version.py", line 64, in __gt__
    c = self._cmp(other)
  File "/storage/python/Python-3.6.4/Lib/distutils/version.py", line 337, in _cmp
    if self.version < other.version:
TypeError: '<' not supported between instances of 'int' and 'str'



(By the way, you appear to have a bug in your sys.excepthook handler. At least I can't reproduce the ModuleNotFoundError you are getting.)
History
Date User Action Args
2018-10-31 22:49:18steven.dapranosetrecipients: + steven.daprano, eric.araujo, dstufft, davide moro
2018-10-31 22:49:18steven.dapranosetmessageid: <1541026158.54.0.788709270274.issue35129@psf.upfronthosting.co.za>
2018-10-31 22:49:18steven.dapranolinkissue35129 messages
2018-10-31 22:49:18steven.dapranocreate