This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients berker.peksag, rhettinger, serhiy.storchaka, vstinner, yselivanov
Date 2016-05-21.19:56:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463860561.27.0.0909732491549.issue27077@psf.upfronthosting.co.za>
In-reply-to
Content
Alright, I think I know what's going on here -- this seems to be a bug of functools.lrucache.  Serhiy, would you be able to look into this?

Testcase:

test.py:

    import functools

    @functools.lru_cache()
    def foo(a):
        return

    foo('')
    foo(b'')

$ python3.5 -bb test.py
Traceback (most recent call last):
  File "test.py", line 8, in <module>
    foo(b'')
BytesWarning: Comparison between bytes and string
History
Date User Action Args
2016-05-21 19:56:01yselivanovsetrecipients: + yselivanov, rhettinger, vstinner, berker.peksag, serhiy.storchaka
2016-05-21 19:56:01yselivanovsetmessageid: <1463860561.27.0.0909732491549.issue27077@psf.upfronthosting.co.za>
2016-05-21 19:56:01yselivanovlinkissue27077 messages
2016-05-21 19:56:01yselivanovcreate