Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cool-RR/PySnooper
/ code
Function
code
pysnooper/variables.py:14–15 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
12
13
def
needs_parentheses(source):
14
def
code(s):
15
return
compile(s,
'<variable>'
,
'eval'
).co_code
16
17
return
code(
'{}.x'
.format(source)) != code(
'({}).x'
.format(source))
18
Callers
1
needs_parentheses
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected