Guest User

len for int

a guest
Dec 2nd, 2013
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def len(obj):
  2.   if isinstance(obj, int):
  3.     return whatever_length_value_for_int_signal(obj)
  4.   else:
  5.     return obj.__len__()
RAW Paste Data