I wrote a simple subclass of Table
class MyTable(Table):
def __init__(self, name, metadata, *args, **kwargs):
super(MyTable, self).__init__(name, metadata, *args, **kwargs)
def select(self,
Table is not meant for subclassing, so you would need to read the source code
to understand these issues. The issue below cannot be reproduced:
from sqlalchemy import *
class MyTable(Table):
def __init__(self, name, metadata, *args, **kwargs):
super(MyTable, self).__init__(name,
On Feb 22, 2011, at 8:30 AM, bool wrote:
select(t) where t is an object of MyTable is giving this error. What
is the solution...
also, I recommend upgrading to a modern release of SQLAlchemy. The above usage
produces this error:
sqlalchemy.exc.ArgumentError: columns argument to select()