yasnippet-snippets/python-mode/eq.yasnippet
2010-11-05 12:04:30 +01:00

8 lines
No EOL
155 B
Text

# -*- mode: snippet -*-
# name: eq
# key: eq
# group: overloading
# contributor: Andrea crotti
# --
def __eq__(self, other):
return self.$1 == other.$1