I coined the term, bimorphic method, last week. Shortly after I wrote about them, I found I wanted a bimorphic property too. It’s the same idea: create a decorator that turns a method into a property getter for both the class object and instances of the class. Here’s an example.
Posts Tagged ‘language’
bimorphic properties, too.
Posted by kernelbob on June 26, 2008
Posted in computers | Tagged: bimorphic, language, python | Leave a Comment »