Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; '22,': 0.09; 'bytes,': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'agree.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inheritance': 0.16; 'object),': 0.16; 'subclass': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'examples': 0.20; 'cc:addr:python.org': 0.22; 'fine': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'cases': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'removing': 0.60; 'union': 0.69; 'subject:! ': 0.74; '2015': 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=10dpvAMigqq0tvu5E9FBG+XDdkUHjYjK4+2hAYHXHLA=; b=BrXG2rXTIdWy6mBk0pluXPfjX8UsPq+jbafNn+uK5YCazFgQW++tsVbDNyxxvrBK/r AMR/fgyKIl4UJq9TxO0bKdfW/4idnwjvNtxv7lYizK+LuP3DPfGsgulHiHujmhKM9ku2 GSuCea1PO6PXuoJq18op7wFSJxRjEB2if3PWH7GxI9jfLdqszcgR+qEXzhlD419f7s46 yxvyfQFMrNsLcxOgjliVRYed4aJNfL0RxP765L37ypWvHw4wwhepw9vreyt8/CedoD8q 436YmmSyDiYeS/JyNJgfl+jx7OUb9PVuDN8lJhNlDCOtrnOWyMnj9Y80SOJur8ZT51VR wz9A== MIME-Version: 1.0 X-Received: by 10.224.43.202 with SMTP id x10mr1852280qae.16.1421928900033; Thu, 22 Jan 2015 04:15:00 -0800 (PST) In-Reply-To: <1a194e0a09db8d20453e39394a3@nntp.aioe.org> References: <1a194e0a09db8d20453e39394a3@nntp.aioe.org> Date: Thu, 22 Jan 2015 23:14:59 +1100 Subject: Re: Python is DOOMED! Again! 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421928903 news.xs4all.nl 2956 [2001:888:2000:d::a6]:43804 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84227 On Thu, Jan 22, 2015 at 10:12 PM, Mario Figueiredo wrote: > I agree. TypeVar will help tremendously by removing the need for union in > cases of object inheritance. But only on cases of object inheritance. Why only inheritance? One of the examples is of str and bytes, which don't have any inheritance relationship (they both just subclass object), and it works just fine for that. ChrisA