MCPcopy Create free account
hub / github.com/PageBot/PageBot / object2SpacedString

Function object2SpacedString

Lib/pagebot/toolbox/transformer.py:1207–1217  ·  view source on GitHub ↗

Answers the object as string. >>> object2SpacedString(2) '2' >>> object2SpacedString('ABC') 'ABC' >>> object2SpacedString(['ABC', 12]) "['ABC', 12]"

(o)

Source from the content-addressed store, hash-verified

1205 return ''.join(tagname)
1206
1207def object2SpacedString(o):
1208 """Answers the object as string.
1209
1210 >>> object2SpacedString(2)
1211 '2'
1212 >>> object2SpacedString('ABC')
1213 'ABC'
1214 >>> object2SpacedString(['ABC', 12])
1215 "['ABC', 12]"
1216 """
1217 return str(o)
1218
1219def flatten2Class(*args):
1220 """

Callers 1

commentMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected