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

Method match

Lib/test/test_buffer.py:997–998  ·  view source on GitHub ↗
(req, flag)

Source from the content-addressed store, hash-verified

995
996 def verify_getbuf(self, orig_ex, ex, req, sliced=False):
997 def match(req, flag):
998 return ((req&flag) == flag)
999
1000 if (# writable request to read-only exporter
1001 (ex.readonly and match(req, PyBUF_WRITABLE)) or

Callers 15

test_translateMethod · 0.45
test_buffer_sizesMethod · 0.45
strftest1Method · 0.45
strftest2Method · 0.45
test_reprMethod · 0.45
test_getshortpathnameMethod · 0.45
test_train_dictMethod · 0.45
test_create_tmpMethod · 0.45
_check_fromMethod · 0.45
test_listMethod · 0.45
test_list_pathsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected