Will the Query.with_parent() method actually be RemovedIn20?

15 views
Skip to first unread message

gordon.d...@gmail.com

unread,
Oct 17, 2021, 6:26:26 PM10/17/21
to sqlalchemy-devel
IMO, the warning message

> sqlalchemy.exc.RemovedIn20Warning: The Query.with_parent() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. Use the with_parent() standalone construct. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)


is a bit confusing. Does "becomes a legacy construct in 2.0" mean that it *won't* be RemovedIn20?

Mike Bayer

unread,
Oct 18, 2021, 9:53:03 AM10/18/21
to sqlalche...@googlegroups.com
a "legacy construct" means it isn't removed.  that said it's a little weird to have it coming out of a removedin20warning warning.   there are a bunch of functions of this nature in query.py that include a "becomes_legacy=True" flag on the decorator so if we wnat to make a different warning class for these we can do that.
--
You received this message because you are subscribed to the Google Groups "sqlalchemy-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy-dev...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages