QuantEcon / MatchingMarkets.py

Python toolbox for simulation of matching markets in economics
BSD 3-Clause "New" or "Revised" License
106 stars 41 forks source link

Use ==/!= to compare constant literals (str, bytes, int, float, tuple) #3

Closed cclauss closed 4 years ago

cclauss commented 4 years ago

Avoid SyntaxWarnings on Python >= 3.8.

% python3.8

>>> 0 is 0
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?