Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.python Subject: Re: Classes Date: Mon, 3 Nov 2014 03:12:32 +0000 (UTC) Organization: A noiseless patient Spider Lines: 37 Message-ID: References: <20141031104319.02e1ca6f@rg.highlandtechnology.com> <2i585a5s6d1aagbh6ot2b88i51o8jhq0db@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 3 Nov 2014 03:12:32 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="23354"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zMIblR62Ap5FF2d+jp4dJzo9QUxLXBlk=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:682VUTRIvGBQoXy8V/Y24JvwzA8= Xref: csiph.com comp.lang.python:80148 On Sun, 02 Nov 2014 11:31:12 -0500, Dennis Lee Bieber wrote: > On Sun, 2 Nov 2014 12:27:06 +0000 (UTC), Denis McMahon > declaimed the following: > >>On Sun, 02 Nov 2014 21:32:13 +1100, Tim Delaney wrote: >>> If course, that's probably because rectangles have a multitude of uses >>> for user interfaces, whilst other quadrilaterals are somewhat less >>> useful. >> >>And perhaps that also addresses the square - rectangle (or circle - >>ellipse) issue - square, rectangle and rhombus are all forms of >>quadrilateral, and perhaps should all inherit a base class >>Quadrilateral, >>rather than trying (and partially failing) to inherit each other. > > I'd class them as parallelograms -- as they differ from a trapezoid in > that opposite faces are parallel... Not to mention "arrow heads" where > two adjacent sides actually bend inwards. So: Quadrilateral Parallelogram Square Rectangle Rhombus Diamond (4 sides eq) Trapezoid Arrowhead Is an arrowhead a trapezoid? -- Denis McMahon, denismfmcmahon@gmail.com