YADTR (Yet Another DateTime Rant)

Chris Angelico rosuav at gmail.com
Fri Mar 28 14:32:48 CET 2014


On Sat, Mar 29, 2014 at 12:22 AM, Roy Smith <roy at panix.com> wrote:
> In article <mailman.8667.1396012782.18130.python-list at python.org>,
>  Chris Angelico <rosuav at gmail.com> wrote:
>
>> On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
>> > If encapsulation exists outside OO and inheritance is not key to it,
>> > what is OO then, a marketing term?
>> >
>>
>> Yep, OO is a marketing term. So's programming - after all, it's just
>> flipping bits in memory... we only pretend it means anything. Do I
>> really exist, or do I just think I do?
>>
>> ChrisA
>
> The real question is, what does this print:
>
> c1 = ChrisA()
> c2 = ChrisA()
> print c1 == c2
> print c2 is c2

And if you could answer that, you would know whether my mother was
right when, in exasperation, she would say "Your design follows the
singleton principle!". Okay, so she actually was more likely to say
"You are one of a kind!", but it comes to the same thing...

ChrisA



More information about the Python-list mailing list