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 Yonatan Goldschmidt, docs@python, rhettinger
Date 2020-07-28.23:48:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595980117.74.0.535541218904.issue41427@roundup.psfhosted.org>
In-reply-to
Content
The origin of the error was an incorrect update from Python 2 semantics where the class was exposed as an attribute:

Python 2.7.17 (v2.7.17:c2f86d86e6, Oct 19 2019, 16:24:34) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
>>> class A:
	def f(self, x):
		return x
	
>>> a = A()
>>> bm = a.f
>>> bm.im_class
<class __main__.A at 0x1002daf30>
>>> bm.im_self
<__main__.A instance at 0x103a204b0>
>>> bm.im_func
<function f at 0x1004ed950>
History
Date User Action Args
2020-07-28 23:48:37rhettingersetrecipients: + rhettinger, docs@python, Yonatan Goldschmidt
2020-07-28 23:48:37rhettingersetmessageid: <1595980117.74.0.535541218904.issue41427@roundup.psfhosted.org>
2020-07-28 23:48:37rhettingerlinkissue41427 messages
2020-07-28 23:48:37rhettingercreate