Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/cpython
/ BadFile
Class
BadFile
Lib/test/test_fcntl.py:22–26 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
20
21
22
class
BadFile:
23
def
__init__(self, fn):
24
self.fn = fn
25
def
fileno(self):
26
return
self.fn
27
28
def
try_lockf_on_other_process_fail(fname, cmd):
29
f = open(fname,
'wb+'
)
Callers
2
test_fcntl_bad_file
Method · 0.70
test_fcntl_bad_file_overflow
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_fcntl_bad_file
Method · 0.56
test_fcntl_bad_file_overflow
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…