Adding an interface to existing classes

Chris Angelico rosuav at gmail.com
Sun Dec 25 08:55:22 EST 2011


On Mon, Dec 26, 2011 at 12:46 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> class DrawableLine(Line):
>    intersection_kind = DrawablePoint

Ha! That works. I was sure there'd be some simple way to do it!

ChrisA



More information about the Python-list mailing list