History

Added a method to create string representations suitable for the Dis.list method.

David Boddie committed 9 years ago

Commit ca2c0b61 parent f918dba1 file · +5 −0Browse files

Unified · Split

utils.py+5−0
@@ -148,6 +148,11 @@ def hash_signature(function_signature): · 147 unmodified lines
148 # Sum the values to produce a 32-bit value.148 # Sum the values to produce a 32-bit value.
149 return sum(values)149 return sum(values)
150 150
151# Miscellaneous
152
153def dbl_repr(obj):
154
155 return repr(obj).replace("'", '"')
151 156
152# Currently unused:157# Currently unused:
153 158