Every line of 'python case insensitive string compare' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
1079 oldValue: The value to replace with newValue. 1080 newValue: The new value of the element at index. 1081 """
56 def lower_case_sort(things): 57 if runningPython34: 58 things.sort(key=str.lower) 59 else: 60 # case-insensitive sort 61 things.sort(lambda x, y: cmp(x.lower(), y.lower())) 62 return things # RL: Not sure of this exactly