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 sobolevn
Recipients gvanrossum, kj, rhettinger, sobolevn, vanburgerberg
Date 2021-10-30.16:54:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635612884.78.0.166377947562.issue45679@roundup.psfhosted.org>
In-reply-to
Content
This happens to all `lru_cache` calls, where we deal with container types.

Example:

```
from functools import lru_cache

@lru_cache(typed=True)
def test(arg):
    return str(arg)

print(test((1, 'a')))  # (1, 'a')
print(test((True, 'a')))  # (1, 'a')
```

Moveover, this behavior is not tested in `test_functools`: https://github.com/python/cpython/blame/aae18a17401dc36917c0f64f971d60ab1a5b477e/Lib/test/test_functools.py#L1482-L1496

Original issue: https://bugs.python.org/issue13227
Original commit: https://github.com/python/cpython/commit/cd9fdfd652cdaca959b1c5d4cddf60d90a331b47
History
Date User Action Args
2021-10-30 16:54:44sobolevnsetrecipients: + sobolevn, gvanrossum, rhettinger, kj, vanburgerberg
2021-10-30 16:54:44sobolevnsetmessageid: <1635612884.78.0.166377947562.issue45679@roundup.psfhosted.org>
2021-10-30 16:54:44sobolevnlinkissue45679 messages
2021-10-30 16:54:44sobolevncreate