You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
New changeset 6b5f1b4 by Raymond Hettinger in branch 'master': bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975) 6b5f1b4
New changeset 76821ba by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975) (GH-14984) 76821ba
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: