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 rhettinger
Recipients Ankur.Ankan, eric.snow, giampaolo.rodola, gvanrossum, nedbat, pconnell, peter.otten, rhettinger, serhiy.storchaka, terry.reedy
Date 2015-04-27.15:00:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430146839.25.0.213223706766.issue16669@psf.upfronthosting.co.za>
In-reply-to
Content
Ideally, I prefer to stick with either a separate customization step or with the original __new__ constructor, and that uses **kwds so we can use a standard syntax for the name value pairs and to allow that possibility of someone passing in an existing dict using NT.set_docstrings(**d).

Also FWIW, the addition can be simplified a bit when Issue 24064 is added:

        for fieldname, docstring in docstrings.items():
            getattr(cls, fieldname).__doc__ = docstring
History
Date User Action Args
2015-04-27 15:08:21rhettingerunlinkissue16669 messages
2015-04-27 15:00:39rhettingersetrecipients: + rhettinger, gvanrossum, terry.reedy, peter.otten, giampaolo.rodola, nedbat, eric.snow, serhiy.storchaka, pconnell, Ankur.Ankan
2015-04-27 15:00:39rhettingersetmessageid: <1430146839.25.0.213223706766.issue16669@psf.upfronthosting.co.za>
2015-04-27 15:00:39rhettingerlinkissue16669 messages
2015-04-27 15:00:39rhettingercreate