Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'represents': 0.05; 'subject:Python': 0.06; 'linux,': 0.07; 'modify': 0.07; 'works.': 0.09; 'language.': 0.14; 'mostly': 0.14; '"object': 0.16; 'behaviour.': 0.16; 'folder,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subclass': 0.16; 'subclasses': 0.16; 'subject:Java': 0.16; 'url:file': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'not,': 0.20; '>>>': 0.22; 'code,': 0.22; 'python?': 0.22; 'oriented': 0.24; 'skip': 0.24; 'source': 0.25; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'wonder': 0.29; 'message- id:@mail.gmail.com': 0.30; '(which': 0.31; 'code': 0.31; 'usually': 0.31; 'class': 0.32; 'url:python': 0.33; 'entirely': 0.33; 'subject: (': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'c++': 0.36; 'done': 0.36; 'possible': 0.36; 'url:org': 0.36; 'two': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'heard': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'how': 0.40; 'even': 0.60; "you've": 0.63; 'more': 0.64; 'different': 0.65; "else's": 0.84; 'url:cpython': 0.84; '2013': 0.98 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:to :content-type; bh=Rb8v0PPSezZdAZXp69BZR0AYmZRtKXZVSnFUcSrf5aw=; b=OE0WLEZ2kSorIidpOLuaaDeJChDHfR0YYBi9z9LayNzioXByQ4L/q6kkrBuSv46p4y EqsJqrT8+7aFcD1Qc0yXDfCMDKS8MS3ZVoN8O5hzIsRfijb9D1uX7IbsNuIJMf4tFnK2 krUyCI03u4n+84PfSII0/DNwkUHqUHKyn3UfBSFsvpSsQTzIPdBJCEZW7wAjNoZDzIPe WQz/yNNRoTejgq9yHcExsNPnb9cIAa5Cu5Yk+MgeM0r9cs2RMStIPhBRB/QPkz97rz6A OoL+YtabddESkSxtPwd0rZaWkR8xUjX5jK8lXmZgA1sTWqFWQDWtuj8xZi0i+/ihMMCW qZow== MIME-Version: 1.0 X-Received: by 10.68.113.99 with SMTP id ix3mr4674669pbb.180.1381956032914; Wed, 16 Oct 2013 13:40:32 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Oct 2013 07:40:32 +1100 Subject: Re: Python was designed (was Re: Multi-threading in Python vs Java) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1381956042 news.xs4all.nl 15934 [2001:888:2000:d::a6]:57060 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56896 On Thu, Oct 17, 2013 at 5:49 AM, Skip Montanaro wrote: >>> Who uses "object abstraction" in C? No one. That's why C++ was invented. >> >> I wonder if you've heard of something called linux? >> http://lwn.net/Articles/444910/ > > If not, Linux, how about Python? > > http://hg.python.org/cpython/file/e2a411a429d6/Objects Or huge slabs of the OS/2 Presentation Manager, which is entirely object oriented and mostly C. It's done with SOM, so it's possible to subclass someone else's object using a completely different language. Makes for a lot of boilerplate in the source code, but it works. You can even - often without the different subclasses being aware of each other - have two or more unrelated modules each subclass-and-replace a standard class like WPFolder (which represents a folder, usually backed by a directory on disk) to modify its behaviour. Yep, definitely possible to write OO code in C. ChrisA