repl.it
@anonymous/

CommonCandidDrupal

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
toggle = True

class A(object):
  def __eq__(self, other):
    global toggle 
    response = toggle
    toggle = not toggle
    return response

A = A()
print( (A == A) and not (A == A) )