[issue37691] Let math.dist() accept coordinates as sequences
Raymond Hettinger
report at bugs.python.org
Sat Jul 27 01:28:58 EDT 2019
New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:
I did some user testing with Python 3.8 and found that math.dist() was a little restrictive in only accepting coordinates as tuples. Mostly it worked out fine except but was a little inconvenient with generalized unpacking:
label, *coordinates = cursor.fetchone() # coordinates is a list
Also, it would be nice to allow numpy arrays as arguments.
----------
assignee: rhettinger
components: Library (Lib)
messages: 348541
nosy: mark.dickinson, rhettinger, tim.peters
priority: normal
severity: normal
status: open
title: Let math.dist() accept coordinates as sequences
versions: Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37691>
_______________________________________
More information about the Python-bugs-list
mailing list