Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5275

Re: list equal to subclass of list?

Date 2011-05-12 18:04 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: list equal to subclass of list?
References <roy-B4A109.08230412052011@news.panix.com> <mailman.1479.1305217887.9059.python-list@python.org> <4dcc78b8$0$29980$c3e8da3$5496439d@news.astraweb.com>
Newsgroups comp.lang.python
Message-ID <mailman.1503.1305247943.9059.python-list@python.org> (permalink)

Show all headers | View raw


Steven D'Aprano wrote:
> On Thu, 12 May 2011 09:43:23 -0700, Ethan Furman wrote:
> 
>> MyList is a list -- just a more specific kind of list -- as can be seen
>> from its mro; this is analogous to a square (2 sets of parallel lines
>> joined at 90 degree angles, both sets being the same length) also being
>> a rectangle (2 sets of parallel lines joined at 90 degree angles).
> 
> Possibly the worst analogy ever! *wink*
> 
> http://en.wikipedia.org/wiki/Circle-ellipse_problem
> 
> Also known as the square-rectangle problem.
> 
> A better analogy might be, Lassie is a dog, and Flipper is a dolphin, so 
> they are different types of animal. But both dogs and dolphins are 
> mammals, so in that sense, Lassie and Flipper are both mammals and 
> therefore the same type of animal. It depends on what you mean by "type".

I thought about using the mammal analogy instead, but geometry seemed 
simpler.  *sigh*  Oh, well, can't win 'em all!

~Ethan~

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

list equal to subclass of list? Roy Smith <roy@panix.com> - 2011-05-12 08:23 -0400
  Re: list equal to subclass of list? Ethan Furman <ethan@stoneleaf.us> - 2011-05-12 09:43 -0700
    Re: list equal to subclass of list? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-13 00:18 +0000
      Re: list equal to subclass of list? Ethan Furman <ethan@stoneleaf.us> - 2011-05-12 18:04 -0700
    Re: list equal to subclass of list? Roy Smith <roy@panix.com> - 2011-05-12 21:53 -0400
  Re: list equal to subclass of list? Ethan Furman <ethan@stoneleaf.us> - 2011-05-12 11:29 -0700
    Re: list equal to subclass of list? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-12 22:40 +0200
    Re: list equal to subclass of list? Roy Smith <roy@panix.com> - 2011-05-12 13:49 -0700
      Re: list equal to subclass of list? Ethan Furman <ethan@stoneleaf.us> - 2011-05-12 14:48 -0700

csiph-web