]> 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:41:54 +0000 (15:41 -0500)
commit99da5ebab36da61b7bfa0b868f50974d6a4c4655
tree14d0d9cda26b08d86a7b1fe525800ae5e02f0783
parentb12b7b120559d07a6f24fb2d6d29c7049084b4a5
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
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