New submission from davide moro :
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
--
components: Distutils
messages: 329018
nosy: davide moro, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: Different behaviour comparing versions (distutils.version.LooseVersion)
between python2.7 and python3.x
type: behavior
versions: Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue35129>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com