Re: [sqlalchemy] Triggers broken after move from PyPy to CPython

2020-08-13 Thread Mike Bayer
Would be very strange but the main difference between pypy and cpython is the garbage collection in cPython is usually immediate for an object withotu reference cycles whereas in Pypy it's not immediate. If this example were in a test suite where the "B" table were created in a transient way

[sqlalchemy] Triggers broken after move from PyPy to CPython

2020-08-13 Thread Ankit Soni
We are attempting to move to CPython from PyPy (both version 2.7), but I'm seeing some baffling errors in the process. We are using SQLAlchemy 1.3.11, Flask-SqlAlchemy 2.4.11, psyocpg2cffi, postgres in our application. There is an "A" model with a post create hook like: