4 ms·
Yeah, one of the motivations for adding namedtuple to stdlib was a drop-in compatible upgrade of existing interfaces returning tuples. Notable atrocities includ
by cben 10y ago
Yeah, one of the motivations for adding namedtuple to stdlib was a drop-in compatible upgrade of existing interfaces returning tuples.
Notable atrocities included `time.localtime()` returning a 9-tuple, and `os.stat()` returning a 10-tuple...