MCPcopy Index your code
hub / github.com/python/cpython / containsAny

Function containsAny

Tools/i18n/pygettext.py:233–235  ·  view source on GitHub ↗

Check whether 'str' contains ANY of the chars in 'set

(str, set)

Source from the content-addressed store, hash-verified

231
232
233def containsAny(str, set):
234 """Check whether 'str' contains ANY of the chars in 'set'"""
235 return 1 in [c in str for c in set]
236
237
238def getFilesForName(name):

Callers 1

getFilesForNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…