On 17.09.2015 23:38, Marko Rauhamaa wrote:
Random832 <random...@fastmail.com>:
It being *easier to implement* to have comparison operators be a
single class and have chaining apply equally to all of them may be an
excuse for the language to allow it, but it's certainly not an excuse
for *actually* using it from a standpoint of good style and
readability.
In general, I don't like such caveats. Either something is in the
language or it is not.
You don't have to use all language features (I certainly don't), but if
somebody takes advantage of them, you shouldn't consider it bad style.
So if you don't like
if prev_node is not node in excluded:
...
take your complaints to whoever accepted the syntax in the language.
One cannot blame it all to the languages designers. They try hard to
optimize the programming workflows.
The responsibility is evenly split between the users and the designers
to use and to design reasonable, maintainable and robust language features.
Best,
Sven
--
https://mail.python.org/mailman/listinfo/python-list