MCPcopy Create free account
hub / github.com/LabPy/lantz / hexWithoutQuotes

Function hexWithoutQuotes

lantz/drivers/labjack/_internal/u12.py:2982–2990  ·  view source on GitHub ↗

Return a string listing hex without all the single quotes. >>> l = range(10) >>> print hexWithoutQuotes(l) [0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9]

(l)

Source from the content-addressed store, hash-verified

2980 return errorString.value
2981
2982def hexWithoutQuotes(l):
2983 """ Return a string listing hex without all the single quotes.
2984
2985 >>> l = range(10)
2986 >>> print hexWithoutQuotes(l)
2987 [0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9]
2988
2989 """
2990 return str([hex (i) for i in l]).replace("'", "")

Callers 2

writeMethod · 0.70
readMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected