#3207: filter infered values according to if statement [open]
#3207 - latest update on 2008/10/01, created on 2006/12/05 by Sylvain Thenault
| priority | normal |
| type | story |
| load | 1.000 |
| load left | 1.000 |
not planned Marteen Ter Huurne reported :
If I run PyLint on the following program:
def radixSort(elements, keyFuncs):
sortList = None
for keyFunc in reversed(keyFuncs):
if sortList is None:
sortList = sorted(elements, key = keyFunc)
else:
sortList.sort(key = keyFunc)
return sortList
It issues this warning:
E1101: 7:radixSort: Instance of 'None' has no 'sort' member
|
| |