Which more Pythonic - self.__class__ or type(self)?
Ian Pilcher
arequipeno at gmail.com
Thu Mar 2 15:54:50 EST 2023
Seems like an FAQ, and I've found a few things on StackOverflow that
discuss the technical differences in edge cases, but I haven't found
anything that talks about which form is considered to be more Pythonic
in those situations where there's no functional difference.
Is there any consensus?
--
========================================================================
Google Where SkyNet meets Idiocracy
========================================================================
More information about the Python-list
mailing list