Message358479
Tried to use "in" statement to check if a string exists in a array and failed using string format.
How to reproduce:
~/ ipython
Python 3.7.4 (default, Oct 12 2019, 18:55:28)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.
In [2]: "a" in ["a", "b"]
Out[2]: True
In [4]: z = "a"
In [5]: f"{z}" in ["a", "b"]
Out[5]: True
In [6]: z = "b"
In [7]: f"{z}" in ["a", "b"]
Out[7]: True |
|
Date |
User |
Action |
Args |
2019-12-16 12:27:44 | ramon.rnm@gmail.com | set | recipients:
+ ramon.rnm@gmail.com |
2019-12-16 12:27:44 | ramon.rnm@gmail.com | set | messageid: <1576499264.15.0.522320667153.issue39063@roundup.psfhosted.org> |
2019-12-16 12:27:44 | ramon.rnm@gmail.com | link | issue39063 messages |
2019-12-16 12:27:43 | ramon.rnm@gmail.com | create | |
|