Re:Grumpy: Go running Python
by ubernostrum on Thursday January 05, 2017 @03:25AM
(#13325631)
There are some defined in built-in modules. Even in Python 2.7, where sys.version_info is a namedtuple.
[ Parent
| on HN ]
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...