pylint-bot / test

0 stars 0 forks source link

Understand tuple unpacking correctly #138

Closed pylint-bot closed 8 years ago

pylint-bot commented 9 years ago

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


Given the following code, c is inferred as an int, not as a list.

#!python

a = (1, 2, 3)
b, *c = a #
print(c.lala)

pylint-bot commented 9 years ago

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


Star unpacking in assignments returns properly a list, not the individual components. Closes issue #138.

pylint-bot commented 8 years ago

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


Star unpacking in assignments returns properly a list, not the individual components. Closes issue #138.