Commits

Mike Bayer committed 795798f

added __setitem__ to Constraint

  • Participants
  • Parent commits 1191fb1

Comments (0)

Files changed (1)

File lib/sqlalchemy/schema.py

         return len(self.columns)
     def __getitem__(self, index):
         return self.columns[index]
+    def __setitem__(self, index, item):
+        self.columns[index] = item
     def copy(self):
         raise NotImplementedError()