Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ write
Method
write
Lib/tempfile.py:865–869 ·
view source on GitHub ↗
(self, s)
Source
from the content-addressed store, hash-verified
863
return
self._file.writable()
864
865
def
write(self, s):
866
file = self._file
867
rv = file.write(s)
868
self._check(file)
869
return
rv
870
871
def
writelines(self, iterable):
872
if
self._max_size == 0 or self._rolled:
Callers
11
writelines
Method · 0.95
test_del_on_close
Method · 0.95
test_multiple_close_before_rollover
Method · 0.95
test_multiple_close_after_rollover
Method · 0.95
test_properties
Method · 0.95
test_text_mode
Method · 0.95
test_text_newline_and_encoding
Method · 0.95
test_context_manager_after_rollover
Method · 0.95
test_truncate_with_size_parameter
Method · 0.95
_get_default_tempdir
Function · 0.45
rollover
Method · 0.45
Calls
1
_check
Method · 0.95
Tested by
8
test_del_on_close
Method · 0.76
test_multiple_close_before_rollover
Method · 0.76
test_multiple_close_after_rollover
Method · 0.76
test_properties
Method · 0.76
test_text_mode
Method · 0.76
test_text_newline_and_encoding
Method · 0.76
test_context_manager_after_rollover
Method · 0.76
test_truncate_with_size_parameter
Method · 0.76