Author keyboardAnt
Recipients keyboardAnt, ned.deily, ronaldoussoren
Date 2020-04-08.11:45:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586346310.43.0.266820060566.issue40224@roundup.psfhosted.org>
In-reply-to
Content
Executing the following code* raise a NameError**. Is it on purpose?
Attached minimal example to reproduce.

class C:
	val = C.sm()

	@staticmethod
	def sm():
		return 'val'

*With Python 3.8.2, on MacOS.
**"NameError: name 'C' is not defined"

Best regards
History
Date User Action Args
2020-04-08 11:45:10keyboardAntsetrecipients: + keyboardAnt, ronaldoussoren, ned.deily
2020-04-08 11:45:10keyboardAntsetmessageid: <1586346310.43.0.266820060566.issue40224@roundup.psfhosted.org>
2020-04-08 11:45:10keyboardAntlinkissue40224 messages
2020-04-08 11:45:10keyboardAntcreate