Re: [sqlalchemy] Invalidated Collection

2021-02-04 Thread Christian Henning
Thanks, Mike! I have some studying to do... On Wednesday, February 3, 2021 at 6:42:17 PM UTC-5 Mike Bayer wrote: > > > On Wed, Feb 3, 2021, at 6:23 PM, Christian Henning wrote: > > Hi Mike, > > thanks for your advice! I'll make the changes. > > But let me ask you one t

Re: [sqlalchemy] Invalidated Collection

2021-02-03 Thread Christian Henning
age external to the set > of operations you are performing. See > https://docs.sqlalchemy.org/en/13/orm/session_basics.html#when-do-i-construct-a-session-when-do-i-commit-it-and-when-do-i-close-it > > for guidelines. > > > On Wed, Feb 3, 2021, at 2:27 PM, Christi

[sqlalchemy] Invalidated Collection

2021-02-03 Thread Christian Henning
I don't understand why SQLAlchemy gives me the following warning: SAWarning: This collection has been invalidated. util.warn("This collection has been invalidated.") Here is a minimal code example: - - import sqlalchemy print(sqlalchemy.__version__) from