znc/znc — Issue #135: Python: Overide __eq__ allow comparison of strings
Author: kylef
Created: 2012-02-23 22:13:04+00:00
State: open
Labels: Modules, Scripting

### Example usage

nick == "kylef"
channel == "#znc"
user == "kylef"
network == "efnet"

### How to implement in Python

def __eq__(self, other):
if str(other) == str(self):
return True

return id(self) == id(other)