On 01/21/2020 02:08 PM, Chris Angelico wrote:
Yes, that's exactly what I mean, and exactly why self.__class__ is used here. If you actually want "Person" even if it's actually a Martian, you can use __class__.__name__ rather than self.__class__.__name__ to get that.
Gotcha, thanks. I'm still unsure what the OP wants, though. -- ~Ethan~ _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BMTYINVLGPRON2MITEFHTYDASGB5CMUL/ Code of Conduct: http://python.org/psf/codeofconduct/