Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _new_buffer
Method
_new_buffer
Lib/email/generator.py:423–424 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
421
self._fp.write(s.encode(
'ascii'
,
'surrogateescape'
))
422
423
def
_new_buffer(self):
424
return
BytesIO()
425
426
def
_encode(self, s):
427
return
s.encode(
'ascii'
)
Callers
nothing calls this directly
Calls
1
BytesIO
Class · 0.90
Tested by
no test coverage detected