very related to this conversation -- isn't the use of [] for indexing and its use in Type hinting functionally very different as well?

-CHB



On Tue, Sep 1, 2020 at 9:55 AM David Mertz <mertz@gnosis.cx> wrote:
> On 30/08/20 3:06 pm, Steven D'Aprano wrote:
(There are a few gray areas, such as array/matrix/vector addition, which
sneak into the "acceptable" area by virtue of their long usage in
mathematics.)

>>> a / b/ c
0.016666666666666666
>>> home / 'git' / 'pip'
PosixPath('/home/dmertz/git/pip')

But yes, it's just another example. And when I teach it I always say "this is a funny but intuitive overloading."

--
The dead increasingly dominate and strangle both the living and the
not-yet born.  Vampiric capital and undead corporate persons abuse
the lives and control the thoughts of homo faber. Ideas, once born,
become abortifacients against new conceptions.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/5Y6ST6HFIOYIAPMKXQ4VZT4AT2MZWX6Y/
Code of Conduct: http://python.org/psf/codeofconduct/


--
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython