Closed pylint-bot closed 8 years ago
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)
This can help with this kind of code:
#!python from astroid.test_utils import extract_node f = extract_node(''' __([1, 2, 3, 4][slice(2)]) ''') print(f) i = next(f.infer()) print(i, i.as_string())
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):
Understand the slice builtin. Closes issue #184.
slice
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)
This can help with this kind of code: