For types that transmit the arguments passed in the call (eg int, listetc.), just use the link on this type, and then call it.
>>> x = 1.
>>> y = 2
>>> t = type(x)
>>> t(y)
2.0
>>> tup = (1,2)
>>> lst = [3,4]
>>> t2 = type(tup)
>>> t2(lst)
(3, 4)
source
share