Message316318
On other hand, beginners are confused even by chained "==". There are regular reports about this on the tracker and questions on Python-related resources.
I have found the chained "in" is useful in the following case
len(string) >= 2 and string[0] == string[-1] in ("'", '"')
for testing if the string is quoted with a single or double quotes. |
|
Date |
User |
Action |
Args |
2018-05-09 09:10:37 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ncoghlan |
2018-05-09 09:10:37 | serhiy.storchaka | set | messageid: <1525857037.64.0.682650639539.issue32055@psf.upfronthosting.co.za> |
2018-05-09 09:10:37 | serhiy.storchaka | link | issue32055 messages |
2018-05-09 09:10:37 | serhiy.storchaka | create | |
|