Message 339810 - Python tracker

Message339810

Author brett.cannon
Recipients Peter de Blanc, brett.cannon, ezio.melotti, michael.foord, rbcollins, xtreak
Date 2019-04-09.21:34:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554845654.48.0.750256152101.issue36569@roundup.psfhosted.org>
In-reply-to
Content
It's more of a "can't be an instance method" than a strict "only classmethod".

Can I ask why you want it to be a strictmethod instead of a classmethod? I personally don't want to change the docs as I think that encourages a potentially bad situation where someone meant to have a classmethod and didn't realize the difference between that and staticmethod. But if there's a legitimate need for staticmethod then I'm open to reconsidering how the docs are written.
History
Date User Action Args
2019-04-09 21:34:14brett.cannonsetrecipients: + brett.cannon, rbcollins, ezio.melotti, michael.foord, xtreak, Peter de Blanc
2019-04-09 21:34:14brett.cannonsetmessageid: <1554845654.48.0.750256152101.issue36569@roundup.psfhosted.org>
2019-04-09 21:34:14brett.cannonlinkissue36569 messages
2019-04-09 21:34:14brett.cannoncreate