George Sakkis a écrit : (snip) > def length(iterable): > try: return len(iterable) > except:
except TypeError: > i = 0 > for x in iterable: i += 1 > return i > (snip) -- http://mail.python.org/mailman/listinfo/python-list
George Sakkis a écrit : (snip) > def length(iterable): > try: return len(iterable) > except:
except TypeError: > i = 0 > for x in iterable: i += 1 > return i > (snip) -- http://mail.python.org/mailman/listinfo/python-list