Open jasonkhadka opened 2 years ago
from padl import * @transform class B: def __init__(self, x): self.x = x b = 2 b = B(b)
gives the following dump:
from padl import transform b = 2 @transform class B: def __init__(self, x): self.x = x b = B(b) _pd_main = B(b)
This is wrong as _pd_main = B(b) should be equivalent to B(2) but in the dump it is equivalent to B(B(2)).
_pd_main = B(b)
B(2)
B(B(2))
gives the following dump:
This is wrong as
_pd_main = B(b)
should be equivalent toB(2)
but in the dump it is equivalent toB(B(2))
.