Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ubernostrum
on Jan 5, 2017
|
parent
|
context
|
favorite
| on:
Grumpy: Go running Python
There are some defined in built-in modules. Even in Python 2.7, where sys.version_info is a namedtuple.
cben
on Jan 5, 2017
[–]
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...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: