You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been considering this a problem with super as it works in the examples without super but finally got a simple example that shows the difference without using super:
CPython:
>>> (1).__new__(int, 5)
5
RustPython:
>>>>> (1).__new__(int, 5)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Expected type <class 'type'>, not <class 'int'>
Activity
cthulahoops commentedon Aug 13, 2019
I think this is probably a duplicate of #778 . Just trying to get this stuff fresh in my mind so I can review the work here.
cthulahoops commentedon Aug 14, 2019
I've been considering this a problem with
superas it works in the examples withoutsuperbut finally got a simple example that shows the difference without usingsuper:CPython:
RustPython:
Lynskylate commentedon Aug 16, 2019
Incompact example code for RustPython object's __new__.
RustPython:
CPython