Odd types.get_original_bases() behavior for classes with generic bases but no type arguments
Chris Bouchard
chris at upliftinglemma.net
Mon Jul 24 23:10:38 EDT 2023
> >>> Example.__bases__
> (First, Second)
Sorry, that should have been
>>> Example.__bases__
(<class '__main__.First'>, <class '__main__.Second'>)
That's what I get for writing an example from memory rather than copying it from
a REPL session. It doesn't change the point I wanted to make, though.
Thanks,
Chris Bouchard
More information about the Python-list
mailing list