[issue33141] descriptor __set_name__ feature broken for dataclass descriptor fields

Eric V. Smith report at bugs.python.org
Mon Mar 26 11:20:48 EDT 2018


Eric V. Smith <eric at trueblade.com> added the comment:

Nick Coghlan suggested (on python-dev) to have Field implement __set_name__ and call through to the default value, if it exists.

That approach seems to work fine. I'll generate a PR with tests sometime before today's release.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33141>
_______________________________________


More information about the Python-bugs-list mailing list