Spot the bug Python
1
# Did the request land on the configured port?
2
def same_port(configured, active):
3
return configured is active
4
5
print(same_port(int("80"), 80))6
print(same_port(int("8080"), 8080))7
# expected: True, True
8
# actual: True, False (!)