M
M
mkone1122022-01-04 15:20:52
Python
mkone112, 2022-01-04 15:20:52

How to overload is?

Is it possible to implement such behavior?

>> a = 1
>> b = 's'
>> a is b
True

So far I'm thinking of doing something like this ( https://eli.thegreenplace.net/2010/06/30/python-in... ), but I don't really understand how to do it on the fly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alexbprofit, 2022-01-05
@alexbprofit

https://stackoverflow.com/questions/3993239/python...

R
Roman Kitaev, 2022-01-04
@deliro

No, and there is no need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question