Ethan Furman added the comment: Yes, the 'huh' function would have to be in either AutoEnum or AddressSegment to be included in the dir of an AddressSegment member.
Here's a shorter example: (this works) ---------------------------------------------------- class SuperEnum(Enum): pass class SubEnum(SuperEnum): sample = 5 def visible(self): return "saw me, right?" 'visible' in dir(SubEnum.sample) ---------------------------------------------------- (this does not work) ---------------------------------------------------- class SuperEnum(Enum): def invisible(self): return "but you didn't see me!" class SubEnum(SuperEnum): sample = 5 'invisible' in dir(SubEnum.sample) ---------------------------------------------------- Sorry for the noise. Do please note that the dir where 'visible' showed up was on the Enum member, not the Enum class. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22506> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com