Dynamically replacing an objects __class__; is it safe?

Tony van der Hoff tony at vanderhoff.org
Thu Mar 16 09:52:56 EDT 2017


On 16/03/17 13:45, Robin Becker wrote:
> On 15/03/2017 13:53, Steve D'Aprano wrote:
>> You probably can't make a whale fly just by changing the class to
>> bird. It
>> will need wings, and feathers, at the very least.
>
> the whale in the Hitchhiker's Guide found itself flying without feathers
> or wings
>
It didn't so much fly, as plummet.

-- 
Tony van der Hoff        | mailto:tony at vanderhoff.org
Buckinghamshire, England |



More information about the Python-list mailing list