pylint-bot / test

0 stars 0 forks source link

Add some sort of reassignment evaluation #141

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

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


Given the following code, trying to understand self._content += 'c' will result in an BinaryOperationError, because astroid will consider the very first value of self._content, even though it was reassigned later on. We should have some sort of evaluation that will know not to retrieve these kind of values.

#!python

  self._content = None
   ...
   ...
   self._content = "ceva"
   self._content += "c