<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 04/30/2013 11:29 PM, Ethan Furman
wrote:<br>
</div>
<blockquote cite="mid:5180B635.7000904@stoneleaf.us" type="cite">On
04/30/2013 11:18 PM, Barry Warsaw wrote:
<br>
<blockquote type="cite">On Apr 28, 2013, at 11:50 PM, Ethan Furman
wrote:
<br>
<br>
<blockquote type="cite">But as soon as:
<br>
<br>
type(Color.red) is Color # True
<br>
type(MoreColor.red) is MoreColor # True
<br>
<br>
then:
<br>
<br>
Color.red is MoreColor.red # must be False, no?
<br>
<br>
<br>
If that last statement can still be True, I'd love it if
someone showed me
<br>
how.
<br>
</blockquote>
<br>
class Foo:
<br>
a = object()
<br>
b = object()
<br>
<br>
class Bar(Foo):
<br>
c = object()
<br>
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">Foo.a is Bar.a
<br>
</blockquote>
</blockquote>
</blockquote>
True
<br>
</blockquote>
<br>
Wow. I think I'm blushing from embarrassment.
<br>
<br>
Thank you for answering my question, Barry.<br>
</blockquote>
<br>
Wait, what? I don't see how Barry's code answers your question. In
his example, type(a) == type(b) == type(c) == object. You were
asking "how can Color.red and MoreColor.red be the same object if
they are of different types?"<br>
<br>
p.s. They can't.<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>