Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/STIXProject/python-stix
/ yield_and_walk
Function
yield_and_walk
stix/utils/walk.py:47–53 ·
view source on GitHub ↗
(item)
Source
from the content-addressed store, hash-verified
45
46
""
"
47
def
yield_and_walk(item):
48
if
not is_entity(item):
49
return
50
51
yield
item
52
for
descendant in iterwalk(item):
53
yield
descendant
54
55
for
varname, varobj in _iter_vars(obj):
56
if
_is_skippable(obj, varname, varobj):
Callers
1
iterwalk
Function · 0.85
Calls
2
is_entity
Function · 0.85
iterwalk
Function · 0.85
Tested by
no test coverage detected