MCPcopy Create free account
hub / github.com/ActiveState/code / id

Method id

recipes/Python/578138_gprof2dotpy/recipe-578138.py:2709–2719  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

2707 self.write(']')
2708
2709 def id(self, id):
2710 if isinstance(id, (int, float)):
2711 s = str(id)
2712 elif isinstance(id, str):
2713 if id.isalnum() and not id.startswith('0x'):
2714 s = id
2715 else:
2716 s = self.escape(id)
2717 else:
2718 raise TypeError
2719 self.write(s)
2720
2721 def color(self, xxx_todo_changeme1):
2722

Callers 6

nodeMethod · 0.95
edgeMethod · 0.95
attr_listMethod · 0.95
predFunction · 0.80
run_fetchFunction · 0.80
_setUpMethod · 0.80

Calls 4

escapeMethod · 0.95
writeMethod · 0.95
strFunction · 0.85
startswithMethod · 0.80

Tested by

no test coverage detected