You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple of nodes in the builtin module ast which provide a .ctx member, useful for determining in what context these nodes occurred, with types such as Store, for instance for x[1] = 2, Del for del x[1] and Load for the rest of them. Might be useful for pylint for disambiguating between a __getitem__ call or a __setitem__ call.
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore)
There are a couple of nodes in the builtin module ast which provide a
.ctx
member, useful for determining in what context these nodes occurred, with types such as Store, for instance forx[1] = 2
, Del fordel x[1]
and Load for the rest of them. Might be useful for pylint for disambiguating between a__getitem__
call or a__setitem__
call.The text was updated successfully, but these errors were encountered: