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

Function any

Lib/idlelib/colorizer.py:12–14  ·  view source on GitHub ↗

Return a named group pattern matching list of alternates.

(name, alternates)

Source from the content-addressed store, hash-verified

10
11
12def any(name, alternates):
13 "Return a named group pattern matching list of alternates."
14 return "(?P<%s>" % name + "|".join(alternates) + ")"
15
16
17def make_pat():

Callers 15

keypress_eventMethod · 0.70
set_is_dangerousMethod · 0.70
make_patFunction · 0.70
_substituteMethod · 0.50
configureMethod · 0.50
nameprepFunction · 0.50
waitFunction · 0.50
lockedMethod · 0.50
decode_paramsFunction · 0.50
_foldMethod · 0.50
get_mailboxFunction · 0.50
_refold_parse_treeFunction · 0.50

Calls 1

joinMethod · 0.45

Tested by 15

test_get_objectsMethod · 0.40
assertSequenceEqualFunction · 0.40
__instancecheck__Method · 0.40
__subclasscheck__Method · 0.40
longer_match_existsMethod · 0.40
test_shared_ciphersMethod · 0.40
_has_load_super_attrMethod · 0.40
test_anyMethod · 0.40
f_anyMethod · 0.40