How to test for sequences that are not string-like using Python 3's standard library How to test for sequences that are not string-like using Python 3's standard library python-3.x python-3.x

How to test for sequences that are not string-like using Python 3's standard library


No, there is nothing in the standard library to easily distinguish between str and bytes-like sequences vs other sequence types. If this is common in your code-base then you may want to roll your own.