0

I am very new to Python. My objective is to convert a Python library to Java, which I have several years of experience with.

For the most part, porting this library has been a breeze with the exception of one single line of code (repeated several times) that I don't understand. I've tried searching for an answer to no avail. So here I am.

                                                             ↓                   ↓
self.push(ComparisonExpression(object_path, value, comparator=comparator, negated=negated))

In Java, this would be self-assignment. I don't imagine this being the same in Python because it achieves nothing. Is this a null check which results in a boolean? I am very confused.

user0000001
  • 2,092
  • 2
  • 20
  • 48

0 Answers0