On 2020-09-30 13:42, David Mertz wrote:
-1.
Fluent programming is uncommon in Python, and hence few methods return a
call of the same or similar type. Methods on strings are an exception
here, but they are unusual (partly because strings are immutable).
This argument is mentioned a lot on here, but I increasingly think it
should be reconsidered. Method chaining is a good way to do things.
Lots of things. I'm more and more convinced that some of the things
Python does without method chaining would be better done with method
chaining, rather than just rejecting method chaining because "that's not
how Python does it". (This is tangential to the idea under discussion
here, though.)
--
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is no
path, and leave a trail."
--author unknown
_______________________________________________
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/HFCXIESSSTCIX4BIPE7WO7MOUE3JJOF6/
Code of Conduct: http://python.org/psf/codeofconduct/