Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ attr_str
Function
attr_str
recipes/Python/576445_ElementTree_Wrapper/recipe-576445.py:20–21 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
18
19
20
def
attr_str(obj):
21
return
' '
.join(
'%s = "%s"'
% (key,value)
for
key,value in obj.items())
22
23
def
text(obj):
24
if
type(obj) in (int,float):
Callers
1
pretty_list
Method · 0.85
Calls
2
join
Method · 0.45
items
Method · 0.45
Tested by
no test coverage detected