On 11/05/2015 01:14, Mark Rosenblitt-Janssen wrote:
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


Thanks for this, I've not found anybody new for my dream team in months.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to