MCPcopy Index your code
hub / github.com/RustPython/RustPython / match

Method match

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

Source from the content-addressed store, hash-verified

983
984 def verify_getbuf(self, orig_ex, ex, req, sliced=False):
985 def match(req, flag):
986 return ((req&flag) == flag)
987
988 if (# writable request to read-only exporter
989 (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