[issue36158] Regex search behaves differently in list comprehension

Steven D'Aprano report at bugs.python.org
Fri Mar 1 23:51:07 EST 2019


Steven D'Aprano <steve+python at pearwood.info> added the comment:

> i want to apply a regex on a list of strings. 

The example you give doesn't include a list of strings, it has some unknown "entity" object with an unknown "trigger" attribute. Please refactor the code to remove the use of a class we don't have access to. You may find that entity.trigger does not contain what you think it contains.

----------
nosy: +steven.daprano

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36158>
_______________________________________


More information about the Python-bugs-list mailing list