Skip to content
Permalink
Branch: master
Commits on Jun 27, 2019
  1. Identity is not the same thing as equality in Python (#291)

    cclauss authored and iperov committed Jun 27, 2019
    Use ==/!= to compare str, bytes, and int literals
    $ python
    ```python
    >>> method = 'Mi'
    >>> method += 'n'
    >>> method == 'Min'
    True
    >>> method is 'Min'
    False
    ```
You can’t perform that action at this time.