On Sun, Jul 19, 2020 at 10:24:42PM -0400, Jonathan Goble wrote: > IMHO the above example would be better spelled as: > > array.loc.get(longitude, latitude, method='nearest', tolerance=0.001)
One of the use-cases for this is for type hints, where you cannot use method calls. So that's right out. Minor issues with "use a method call" include that it makes using slices difficult, as slice syntax is not legal in a method call, and that item assignment and deletion are awkward (you have to use a setter and deleter method, like some sort of ~~caveman~~ Java developer, instead of writing what you mean). -- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@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/ZODIBT7NCVXXVJP4P4Y3WSORERU7W3C2/ Code of Conduct: http://python.org/psf/codeofconduct/