Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'bits': 0.09; 'exist,': 0.09; 'pretend': 0.09; 'cc:addr:python-list': 0.11; '"your': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inheritance': 0.16; 'roy': 0.16; 'singleton': 0.16; 'term.': 0.16; 'when,': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; '"you': 0.24; 'exists': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'follows': 0.31; 'could': 0.34; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'that,': 0.38; 'does': 0.39; 'then,': 0.60; 'real': 0.63; 'more': 0.64; 'mar': 0.68; 'anything.': 0.68; 'smith': 0.68; 'marketing': 0.70; 'article': 0.77; 'flipping': 0.84; 'thing...': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=waXY+2tQH1KPML1G+uHrk9V9XJvL3tLfJ5ZAR9S63Bo=; b=hrfWxSSx9cOV1U9Icmdia9Rnku9EpvNnmA4iEK516ZxZqs9BTIFUQpNTDt1Ow+G+IG tj5qR85sXDA6TUcsHkjve3+XKOZftxfvAPJ0FmLkRlR0S3bKqLpdjwkr6KSx9BVIG+vE Pk7ertQEt8zSZ8FhNg9OmZn/RpeprLSpAkvoFGqHDu37Jquy+YHody6AsxVyJpizvvnk YFjCieU1rP4K4ejCNm6wVU92pEbapZYywFJB0Q8SmFyJ4mE4pv5ARdY4bZr+xykBDdzH HgSd661rTz7TRmKSaJ0rdtFR5ttVTIQk8CmKey9YVEGTAmXFFpkRWKTxZT8i4fUtzEIU mIpA== MIME-Version: 1.0 X-Received: by 10.68.235.6 with SMTP id ui6mr8662325pbc.45.1396013568831; Fri, 28 Mar 2014 06:32:48 -0700 (PDT) In-Reply-To: References: <53336df8$0$29994$c3e8da3$5496439d@news.astraweb.com> <5334b747$0$29994$c3e8da3$5496439d@news.astraweb.com> <533558fa$0$29994$c3e8da3$5496439d@news.astraweb.com> <871txmwjt4.fsf@elektro.pacujo.net> Date: Sat, 29 Mar 2014 00:32:48 +1100 Subject: Re: YADTR (Yet Another DateTime Rant) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396013572 news.xs4all.nl 2866 [2001:888:2000:d::a6]:56891 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69275 On Sat, Mar 29, 2014 at 12:22 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa 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