pylint-bot / test

0 stars 0 forks source link

Understand tuple/list/set slicing #137

Closed pylint-bot closed 8 years ago

pylint-bot commented 9 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)


Could be useful for these kind of checks:

#!python

a = (1, 2, 3)
x = a[:2]
print(x[0].lala) # int has no attribute lala

pylint-bot commented 8 years ago

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):


Issue #90 was marked as a duplicate of this issue.

pylint-bot commented 8 years ago

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):


Understand slices of tuples, lists, strings and instances with support for slices.

Closes issue #137.