Files
RustPython/vm/src
snowapril 1ddeb67ad0 builtins: fix issubclass method miswork
This commit fix issue #2943.

In cpython, both first and second argument can be value (not type).
As second parameter `cls` is defined as PyTypeRef,
`vm.call_special_method` use `subclasscheck` method in `PyTuple`, never could reach
to user defined `subclasscheck` method.

In general, first argument of `issubclass` must be `<class Type>`, but
if second argument define `__subclasscheck__`, rustpython must test it
first. Therefore, for first argument enable to have different type, I
switch it's type as `PyObjectRef`.

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-08-27 19:28:01 +09:00
..
2021-08-24 02:52:33 +09:00
2021-05-21 01:32:55 -05:00
2021-04-27 08:15:13 -05:00
2021-07-30 02:32:16 +09:00
2021-08-21 17:09:48 +03:00
2021-08-21 17:09:48 +03:00
2021-08-14 13:39:06 +09:00
2021-07-30 02:32:16 +09:00
2021-07-30 02:32:16 +09:00
2021-03-26 17:54:22 -05:00
2021-08-21 02:03:39 +09:00
2021-08-21 17:09:48 +03:00
2021-08-19 19:09:23 +09:00
2021-07-31 10:49:39 -05:00
2021-08-27 19:28:01 +09:00