SQLAlchemy, polymorphic inheritance with classical mapping [duplicate]
问题 This question already has an answer here : Need classic mapper example for SqlAlchemy single table inheritance (1 answer) Closed 3 years ago . I need to use the classical mapping instead of the declarative, for the last two days I am trying to make inheritance work, I tried with the declarative style and it worked but whatever I tried I cant get it to work when using the old mapping style. class Item(object): def specialised_method(self): return "I am not special" class SpecialisedItem(Item):