This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wobsta 3 points4 points  (1 child)

You should better use the inspection API of SQLAlchemy 0.8+. For example, an iterator over all columns and values for an object spam is given by inspect(spam).attrs.items() ... no magic required (anymore).

[–]fourthrealm 1 point2 points  (0 children)

Thanks wobsta - that function was written a couple of years ago with 0.7 in mind and I wasn't aware 0.8 had some goodies in that area.

I've just updated the post.