anomaly

Mark Lawrence breamoreboy at yahoo.co.uk
Sun May 10 20:19:49 EDT 2015


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




More information about the Python-list mailing list