Which more Pythonic - self.__class__ or type(self)?

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 3 19:20:42 EST 2023


On 4/03/23 7:51 am, avi.e.gross at gmail.com wrote:

> I leave you with the question of the day. Was Voldemort pythonic?

Well, he was fluent in Parseltongue, which is not a good sign.

I hope not, otherwise we'll have to rename Python to "The Language
That Shall Not Be Named" and watch out for horcruxes during code
reviews.

I'll note that he was fluent in Parseltongue, which is not a good
sign.

-- 
Greg


More information about the Python-list mailing list