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 ncoghlan
Recipients docs@python, ethan.furman, ncoghlan
Date 2015-03-03.12:36:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425386182.27.0.841463956219.issue17352@psf.upfronthosting.co.za>
In-reply-to
Content
__new__ is a little weird - it's actually special cased as a staticmethod.

Your questions is still valid, though.

For existing versions, documenting the requirement is the only option. 

For future versions, we could conceivably implement a "decorate it if it isn't already decorated" fallback, but for backwards compatibility we'd have to avoid double-decorating explicitly decorated implementations.
History
Date User Action Args
2015-03-03 12:36:22ncoghlansetrecipients: + ncoghlan, docs@python, ethan.furman
2015-03-03 12:36:22ncoghlansetmessageid: <1425386182.27.0.841463956219.issue17352@psf.upfronthosting.co.za>
2015-03-03 12:36:22ncoghlanlinkissue17352 messages
2015-03-03 12:36:22ncoghlancreate