Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ create_file
Function
create_file
Lib/test/test_genericpath.py:17–19 ·
view source on GitHub ↗
(filename, data=b'foo')
Source
from the content-addressed store, hash-verified
15
16
17
def
create_file(filename, data=b
'foo'
):
18
with
open(filename,
'xb'
, 0)
as
fp:
19
fp.write(data)
20
21
22
class
GenericTest:
Callers
11
test_getsize
Method · 0.70
test_filetime
Method · 0.70
test_exists
Method · 0.70
test_isdir
Method · 0.70
test_isfile
Method · 0.70
test_samefile
Method · 0.70
_test_samefile_on_link_func
Method · 0.70
test_samestat
Method · 0.70
_test_samestat_on_link_func
Method · 0.70
test_sameopenfile
Method · 0.70
setUp
Method · 0.70
Calls
2
open
Function · 0.50
write
Method · 0.45
Tested by
no test coverage detected