Open pylint-bot opened 9 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):
As an example of an error caused by the lack of understanding flow control:
#!python
if isinstance(default, tuple):
return default + (n, )
else:
return default + [n] # thinks its tuple
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)
Of course, the lack of understanding flow controls leads to spurious false positives for this situation as well.