This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients PBrudny, eric.smith
Date 2019-08-07.10:11:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565172712.05.0.248542452785.issue37782@roundup.psfhosted.org>
In-reply-to
Content
example_text is not a field, since you're not giving it a type. It's just a normal class member.

The only field in the NamedTuple is example_int. You can't specify any other field in the call to MyTestedTuple().

To see this, help(MyTestedTuple) starts with:

class MyTestedTuple(builtins.tuple)
 |  MyTestedTuple(example_int: int = 3)
History
Date User Action Args
2019-08-07 10:11:52eric.smithsetrecipients: + eric.smith, PBrudny
2019-08-07 10:11:52eric.smithsetmessageid: <1565172712.05.0.248542452785.issue37782@roundup.psfhosted.org>
2019-08-07 10:11:52eric.smithlinkissue37782 messages
2019-08-07 10:11:51eric.smithcreate