2 ms·
Couldn't you use isinstance(), which would not be a hack?
by 1718627440 1y ago
Couldn't you use isinstance(), which would not be a hack?
- btown 1y agoisinstance only tells you which subclass, not whether that subclass overrides the superclass implementation!