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

Function _combine_flags

Lib/re/_compiler.py:33–37  ·  view source on GitHub ↗
(flags, add_flags, del_flags,
                   TYPE_FLAGS=_parser.TYPE_FLAGS)

Source from the content-addressed store, hash-verified

31_CHARSET_ALL = [(NEGATE, None)]
32
33def _combine_flags(flags, add_flags, del_flags,
34 TYPE_FLAGS=_parser.TYPE_FLAGS):
35 if add_flags & TYPE_FLAGS:
36 flags &= ~TYPE_FLAGS
37 return (flags | add_flags) & ~del_flags
38
39def _compile(code, pattern, flags):
40 # internal: compile a (sub)pattern

Callers 3

_compileFunction · 0.85
_get_literal_prefixFunction · 0.85
_get_charset_prefixFunction · 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…