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 Ricyteach, eric.smith
Date 2018-03-26.15:20:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522077648.71.0.467229070634.issue33141@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-03-26 15:20:48eric.smithsetrecipients: + eric.smith, Ricyteach
2018-03-26 15:20:48eric.smithsetmessageid: <1522077648.71.0.467229070634.issue33141@psf.upfronthosting.co.za>
2018-03-26 15:20:48eric.smithlinkissue33141 messages
2018-03-26 15:20:48eric.smithcreate