This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ramon.rnm@gmail.com
Recipients ramon.rnm@gmail.com
Date 2019-12-16.12:27:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576499264.15.0.522320667153.issue39063@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-12-16 12:27:44ramon.rnm@gmail.comsetrecipients: + ramon.rnm@gmail.com
2019-12-16 12:27:44ramon.rnm@gmail.comsetmessageid: <1576499264.15.0.522320667153.issue39063@roundup.psfhosted.org>
2019-12-16 12:27:44ramon.rnm@gmail.comlinkissue39063 messages
2019-12-16 12:27:43ramon.rnm@gmail.comcreate