Dynamically replacing an objects __class__; is it safe?
jon+usenet at unequivocal.eu
Thu Mar 16 10:04:19 EDT 2017
On 2017-03-16, Robin Becker <robin at reportlab.com> 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
Well, only if you redefine "flying" to include "accelerating to
terminal velocity straight downwards under the force of gravity"...
More information about the Python-list