Message343180
We do, but here the test will need to be changed:
Python 3.7.3+ (heads/3.7:791e5fcbab, May 22 2019, 13:37:27)
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> class IntWithDict:
... def __init__(self, **kwargs):
... self.kwargs = kwargs
... def __index__(self):
... self.kwargs.clear()
... return 0
...
>>> x = IntWithDict(dont_inherit=float())
>>> compile("", "", "", x, **x.kwargs)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: an integer is required (got type IntWithDict) |
|
Date |
User |
Action |
Args |
2019-05-22 11:41:44 | petr.viktorin | set | recipients:
+ petr.viktorin, vstinner, jdemeyer |
2019-05-22 11:41:43 | petr.viktorin | set | messageid: <1558525304.0.0.682670325309.issue36907@roundup.psfhosted.org> |
2019-05-22 11:41:43 | petr.viktorin | link | issue36907 messages |
2019-05-22 11:41:43 | petr.viktorin | create | |
|