overriding a property

Lucasm lordlucraft at gmail.com
Tue Oct 19 15:39:56 CEST 2010


A question. Is it possible to dynamically override a property?

class A(object):
    def return_five(self):
        return 5

I would like to override the property for an instance of A to say the
string 'bla'.

More information about the Python-list mailing list