News for hackers. Stuff that matters.
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.
Re:Grumpy: Go running Python by cben on Thursday January 05, 2017 @06:02AM (#13326217)
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...