]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use a standard function to check for iterable collections
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Dec 2023 15:56:18 +0000 (10:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Dec 2023 20:42:02 +0000 (15:42 -0500)
commit1fad31cb948d5e1b7421e39d84bc18179875fd26
treeec0775a5bcc11da072665ef29e4aefce536a53a9
parentdf6f3a232393a647052bf6b52d73e4529f7d69e9
use a standard function to check for iterable collections

Fixed 2.0 regression in :class:`.MutableList` where a routine that detects
sequences would not correctly filter out string or bytes instances, making
it impossible to assign a string value to a specific index (while
non-sequence values would work fine).

Fixes: #10784
Change-Id: I829cd2a1ef555184de8e6a752f39df65f69f6943
(cherry picked from commit 99da5ebab36da61b7bfa0b868f50974d6a4c4655)
doc/build/changelog/unreleased_20/10784.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mutable.py
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/_collections.py
lib/sqlalchemy/util/typing.py
test/base/test_utils.py
test/ext/test_mutable.py