MCPcopy 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
20def attr_str(obj):
21 return ' '.join('%s = "%s"' % (key,value) for key,value in obj.items())
22
23def text(obj):
24 if type(obj) in (int,float):

Callers 1

pretty_listMethod · 0.85

Calls 2

joinMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected