On Sat, Mar 29, 2014 at 12:22 AM, Roy Smith <r...@panix.com> wrote: > In article <mailman.8667.1396012782.18130.python-l...@python.org>, > Chris Angelico <ros...@gmail.com> wrote: > >> On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa <ma...@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 -- https://mail.python.org/mailman/listinfo/python-list