Ivan Levkivskyi added the comment:
It seems to be unrelated to typing.py
With your test from test_functools:
def test_lru_type_error(self):
@functools.lru_cache(maxsize=None)
def infinite_cache(o):
pass
with self.assertRaises(TypeError):
infinite_cache([])
I get [2, 2, 2, 2] for unpatched C version (this is now fixed)
and [24764, 24764, 24764, 24764] for Python version.
Should I maybe open a separate issue for this?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28653>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com