Message390996
Hi. I'm totally confused about other keywords but I'm a little concerned about the "and", "or" operator when used on, not only "int" (also known as "long") but also most Python objects other then bool type.
Mostly when used on Python built-in objects "and", "or" keyword returns a very peculiar result. The "and" keyword returns the Python object on the left hand side while "or" returns the Python object on the right hand side. This applies to all Python object, built-in or user-defined, unless it has a specific __and__ or __or__ method defined.
What is actually going on? |
|
Date |
User |
Action |
Args |
2021-04-13 19:50:18 | shreyanavigyan | set | recipients:
+ shreyanavigyan, Carl.Friedrich.Bolz, nedbat, serhiy.storchaka, pablogsal, sco1, alimuldal, rrauenza |
2021-04-13 19:50:18 | shreyanavigyan | set | messageid: <1618343418.68.0.371654550196.issue43833@roundup.psfhosted.org> |
2021-04-13 19:50:18 | shreyanavigyan | link | issue43833 messages |
2021-04-13 19:50:18 | shreyanavigyan | create | |
|