Python and SQLAlchemy gotcha: ORM's RowMapping walks like a dict and quacks like a dict, yet isn't one. Spent hours debugging why a Polars DataFrame test failed. The culprit? Duck typing: a sequence of RowMapping differs from a dictionary sequence when evaluated in Polars, causing the bug.

Comments