Re: [sqlalchemy] Enhancement request: Let __table_args__ accept empty tuples

2011-12-03 Thread Michael Bayer
This is a terrific patch. I've added http://www.sqlalchemy.org/trac/ticket/2339 for this and am hoping to make a large pass through 0.7.4 today/tomorrow, which is mostly ready-to-go patches. thanks ! On Dec 3, 2011, at 7:55 AM, Fayaz Yusuf Khan wrote: > As of now, the attached dummy script

[sqlalchemy] Enhancement request: Let __table_args__ accept empty tuples

2011-12-03 Thread Fayaz Yusuf Khan
As of now, the attached dummy script would fail with an IndexError as sqlalchemy is depending on the fact that __table_args__ is a non-empty tuple (if it is a tuple in the first place). However, there are some use cases (mostly involving mixins and inheritance) where it would be nice to allow a