Message237127
__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. |
|
Date |
User |
Action |
Args |
2015-03-03 12:36:22 | ncoghlan | set | recipients:
+ ncoghlan, docs@python, ethan.furman |
2015-03-03 12:36:22 | ncoghlan | set | messageid: <1425386182.27.0.841463956219.issue17352@psf.upfronthosting.co.za> |
2015-03-03 12:36:22 | ncoghlan | link | issue17352 messages |
2015-03-03 12:36:22 | ncoghlan | create | |
|