Divij Vaidya created KAFKA-15153:
------------------------------------

             Summary: Use Python `is` instead of  `==` to compare for None
                 Key: KAFKA-15153
                 URL: https://issues.apache.org/jira/browse/KAFKA-15153
             Project: Kafka
          Issue Type: Improvement
            Reporter: Divij Vaidya


*This is a good item to be picked by first time contributors to Kafka code base*

At release_notes.py Line: 47

The {{==}} and {{!=}} operators use the compared objects' {{__eq__}} method to 
test if they are equal. To check if an object is a singleton, such as 
{{{}None{}}}, we recommend that you use the {{is}} identity comparison operator.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to