Every line of 'tuple to int' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
74 def cast_tuple_int_list(tup): 75 """Set tuple float values to int for more predictable test results""" 76 return [int(a) for a in tup]
11 def _inttuple(obj): 12 if isinstance(obj, tuple) and len(obj)==1: 13 obj = obj[0] 14 if isinstance(obj, (slice,)+integer_types): 15 return (obj,) 16 return tuple(obj)
61 def to_int(note_list): 62 return [x.int_tuple() for x in note_list]
7 def hex_to_tuple(t): 8 return ( 9 int(t[0:2], base = 16), 10 int(t[2:4], base = 16), 11 int(t[4:6], base = 16) 12 )