Returns True if the given value is a list-like instance >>> isListLike([1, 2, 3]) True >>> isListLike('2') False
(value)
| 3727 | return retVal |
| 3728 | |
| 3729 | def isListLike(value): |
| 3730 | """ |
| 3731 | Returns True if the given value is a list-like instance |
| 3732 | |
| 3733 | >>> isListLike([1, 2, 3]) |
| 3734 | True |
| 3735 | >>> isListLike('2') |
| 3736 | False |
| 3737 | """ |
| 3738 | |
| 3739 | return isinstance(value, (list, tuple, set, OrderedSet, BigArray)) |
| 3740 | |
| 3741 | def getSortedInjectionTests(): |
| 3742 | """ |
no outgoing calls
no test coverage detected
searching dependent graphs…