Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ is_byte_format
Function
is_byte_format
Lib/test/test_buffer.py:252–253 ·
view source on GitHub ↗
(fmt)
Source
from the content-addressed store, hash-verified
250
251
252
def
is_byte_format(fmt):
253
return
'c'
in fmt or
'b'
in fmt or
'B'
in fmt
254
255
def
is_memoryview_format(fmt):
256
""
"format suitable for memoryview"
""
Callers
3
test_buffer.py
File · 0.85
test_memoryview_cast_invalid
Method · 0.85
test_memoryview_cast_1D_ND
Method · 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…