[issue30272] distutils.version.LooseVersion's compare raises exception in corner-case

2017-05-04 Thread Oliver Smith

Changes by Oliver Smith <smartt...@mailinator.com>:


--
components: +Distutils
nosy: +dstufft, merwok
type:  -> behavior

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30272>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30272] distutils.version.LooseVersion's compare raises exception in corner-case

2017-05-04 Thread Oliver Smith

New submission from Oliver Smith:

This should return True and not raise an exception:

>>> from distutils.version import LooseVersion
>>> LooseVersion("22.7-r1") < LooseVersion("22.7.3-r1")
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.6/distutils/version.py", line 52, in __lt__
c = self._cmp(other)
  File "/usr/lib/python3.6/distutils/version.py", line 337, in _cmp
if self.version < other.version:
TypeError: '<' not supported between instances of 'str' and 'int'
>>>

Tested with Python 3.6.1.

--
messages: 293009
nosy: ollieparanoid2
priority: normal
severity: normal
status: open
title: distutils.version.LooseVersion's compare raises exception in corner-case
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30272>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9694] argparse required arguments displayed under optional arguments

2014-09-02 Thread Oliver Smith

Oliver Smith added the comment:

The term optional arguments is a poorly formed adjectival suffix of option. 
What it's trying to say is these are kwargs rather than these arguments are 
not compulsory.

I ran into this issue with 3.4 and was looking to file a simple change request:

In early DOS/Linux days we called these switches. I suggest we simply change 
the default wording from optional arguments to switches.

--
nosy: +Oliver.Smith
Added file: http://bugs.python.org/file36528/parrot.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9694
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com