[pypy-issue] Issue #1927: string comparison failing in pypy in if-statement with is keyword (pypy/pypy)

vikko issues-reply at bitbucket.org
Mon Nov 17 17:30:22 CET 2014


New issue 1927: string comparison failing in pypy in if-statement with is keyword
https://bitbucket.org/pypy/pypy/issue/1927/string-comparison-failing-in-pypy-in-if

vikko:

following code outputs "somethings wrong" with pypy, "it's all good is outputted with python 2.7"


```
#!python

def testf(param):
    if param is "exponential":
        print "it's all good"
    else:
        print "somethings wrong"

testf("exponential")

```

Version:
Python 2.7.6 (32f35069a16d819b58c1b6efb17c44e3e53397b2, Nov 03 2014, 13:35:47)
[PyPy 2.3.1]





More information about the pypy-issue mailing list