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 Ricyteach
Recipients Ricyteach, eric.smith
Date 2018-03-26.16:57:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Eric, looking at the PR; note that if you do this for the __set_name__ check:

    if inspect.ismethoddescriptor(self.default): object like the one below will not get its __set_name__ called, even though PEP 487 says it should:

class D:
	def __set_name__(self, o, n): = n

class C:
	d: int = D()

if __name__ == "__main__":
	print(f" = {}") # __set_name__ was called
	assert inspect.ismethoddescriptor(C.d) # Error
Date User Action Args
2018-03-26 16:57:12Ricyteachsetrecipients: + Ricyteach, eric.smith
2018-03-26 16:57:12Ricyteachsetmessageid: <>
2018-03-26 16:57:12Ricyteachlinkissue33141 messages
2018-03-26 16:57:12Ricyteachcreate