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 Ronny.Pfannschmidt
Recipients Ronny.Pfannschmidt
Date 2021-08-11.21:33:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628717583.56.0.19105113048.issue44893@roundup.psfhosted.org>
In-reply-to
Content
due to 

```
 def __iter__(self):
        """
        Supply iter so one may construct dicts of EntryPoints easily.
        """
        return iter((self.name, self))
```

the default namedtuple asdict method is broken

instead of returning the fields, recursive objects are returned as 

```
(Pdb) v
EntryPoint(name='.git', value='setuptools_scm.git:parse', group='setuptools_scm.parse_scm')
(Pdb) v._asdict()
{'name': '.git', 'value': EntryPoint(name='.git', value='setuptools_scm.git:parse', group='setuptools_scm.parse_scm')}
(Pdb) type(v)
<class 'importlib.metadata.EntryPoint'>
(Pdb)
History
Date User Action Args
2021-08-11 21:33:03Ronny.Pfannschmidtsetrecipients: + Ronny.Pfannschmidt
2021-08-11 21:33:03Ronny.Pfannschmidtsetmessageid: <1628717583.56.0.19105113048.issue44893@roundup.psfhosted.org>
2021-08-11 21:33:03Ronny.Pfannschmidtlinkissue44893 messages
2021-08-11 21:33:03Ronny.Pfannschmidtcreate