[Python-ideas] NamedTuple Interface
Fabrizio Messina
zauddelig at gmail.com
Mon May 15 09:18:03 EDT 2017
More information about the Python-ideas mailing list
Mon May 15 09:18:03 EDT 2017
- Previous message (by thread): [Python-ideas] Tighten up the formal grammar and parsing a bit?
- Next message (by thread): [Python-ideas] Python-ideas Digest, Vol 126, Issue 35
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think it would be nice to have a generic NamedTuple interface in python:
from typing import NamedTupleType
def test(
arguments: NamedTupleType
) -> NamedTupleType:
return SomeType(**NamedTupleType._asdict)
The rationale is that named tuple exposes a common API, and it would be
nice to have it readily available.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170515/68db0730/attachment.html>
- Previous message (by thread): [Python-ideas] Tighten up the formal grammar and parsing a bit?
- Next message (by thread): [Python-ideas] Python-ideas Digest, Vol 126, Issue 35
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list