
May 31, 2021
3:26 p.m.
On 2021-05-31 16:16:59, MRAB wrote:
If you rebind str to int, the repr of str will say <class 'int'>, so you can tell that something's happened, but the repr of ... is always 'Ellipsis', even though you've rebound Ellipsis.
Ellipsis is ... True Ellipsis = str Ellipsis is ... False