downcasting problem

Nikola Skoric nick at fly.srk.fer.hr
Mon Oct 25 11:31:17 EDT 2010


Dana Mon, 25 Oct 2010 09:38:42 -0500, 
Tim Chase <python.list at tim.thechases.com> kaze:
> While a dirty hack for which I'd tend to smack anybody who used 
> it...you *can* assign to instance.__class__

Wow! Python never stops to amaze me.

> If it breaks you get to keep all the parts :)

Yes, I can see great potential for shit hitting the fan here.

Thanks for the tip!

-- 
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"



More information about the Python-list mailing list