Flattens list to a string value >>> listToStrValue([1,2,3]) '1, 2, 3'
(value)
| 4066 | return retVal |
| 4067 | |
| 4068 | def listToStrValue(value): |
| 4069 | """ |
| 4070 | Flattens list to a string value |
| 4071 | |
| 4072 | >>> listToStrValue([1,2,3]) |
| 4073 | '1, 2, 3' |
| 4074 | """ |
| 4075 | |
| 4076 | if isinstance(value, (set, tuple, types.GeneratorType)): |
| 4077 | value = list(value) |
| 4078 | |
| 4079 | if isinstance(value, list): |
| 4080 | retVal = value.__str__().lstrip('[').rstrip(']') |
| 4081 | else: |
| 4082 | retVal = value |
| 4083 | |
| 4084 | return retVal |
| 4085 | |
| 4086 | def intersect(containerA, containerB, lowerCase=False): |
| 4087 | """ |
searching dependent graphs…