Re:NumPy Illustrated: The Visual Guide to NumPy
by proverbialbunny on Tuesday December 29, 2020 @03:50AM
(#25567964)
>and deferred PEP for rich comparison chaining specifically
>https://www.python.org/dev/peps/pep-0535/
Oh nice! Thank you for sharing. I'm sure the functionality will eventually come.
https://www.python.org/dev/peps/pep-0335/
and deferred PEP for rich comparison chaining specifically
https://www.python.org/dev/peps/pep-0535/
The central issue is that `3<=a<=5` expands to `3<=a and a<=5`, and `and` coerces the variables to booleans in order to work.