In case the example given at the start of the thread wasn't interesting enough, it also works in the other direction:
>>> class str(int): pass >>> str('2') 2 #<----- an integer!!! Mark -- https://mail.python.org/mailman/listinfo/python-list
In case the example given at the start of the thread wasn't interesting enough, it also works in the other direction:
>>> class str(int): pass >>> str('2') 2 #<----- an integer!!! Mark -- https://mail.python.org/mailman/listinfo/python-list