17 Aug
2020
17 Aug
'20
2:39 p.m.
(the example with changing HTTP_OK value is downright horrifying).
As was just mentioned by Guido in another thread, there is a SyntaxWarning to alert you.
This leads to the idea that, if a special syntax if eventually used for Value Patterns, using the comparison operator in it might be useful.
Have a look at https://www.mail-archive.com/python-dev@python.org/msg109254.html . Unfortunately, this doesn't scale well with attribute checks... Cheers, Jean Abou Samra