]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Rename Row t and tuples with underscored versions.
authorFederico Caselli <cfederico87@gmail.com>
Wed, 12 Jul 2023 20:58:24 +0000 (22:58 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Jul 2023 18:32:59 +0000 (14:32 -0400)
commited1e2f4b3406499132a180f8d2c23b0fc935a117
treea01575a9a0401de227a882f8df9e3eb728cd09d4
parenta7fa15ea7340569499095e06bd5ad1d71e1ccaff
Rename Row t and tuples with underscored versions.

Renamed :attr:`_result.Row.t` and :meth:`_result.Row.tuple` to
:attr:`_result.Row._t` and :meth:`_result.Row._tuple`; this is to suit the
policy that all methods and pre-defined attributes on :class:`.Row` should
be in the style of Python standard library ``namedtuple`` where all fixed
names have a leading underscore, to avoid name conflicts with existing
column names.   The previous method/attribute is now deprecated and will
emit a deprecation warning.

Fixes: #10093
Change-Id: Ibb0e9423b55590c9dda8ee554187abd9a9122590
doc/build/changelog/unreleased_20/10093.rst [new file with mode: 0644]
doc/build/core/connections.rst
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/engine/row.py
test/sql/test_resultset.py