Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'class,': 0.07; 'tuple': 0.09; 'subject:not': 0.11; 'assume': 0.11; 'sat,': 0.15; 'subject:class': 0.16; 'subject:default': 0.16; 'subject:type': 0.16; 'wrote:': 0.17; 'pointed': 0.17; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'origin': 0.29; 'that.': 0.30; 'could': 0.32; 'point,': 0.33; 'true.': 0.33; 'to:addr:python-list': 0.33; 'equal': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'list,': 0.39; 'header:Received:5': 0.40; 'more': 0.63; 'other.': 0.64; 'fact,': 0.69; 'deem': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=32QaFR13BKPUMsN99rxi4jyu2XrVrkzFiiUFhxm2v90=; b=CJibBAD5AW2Ao3bPS1lbeL3pJGKwTtv7exH18E59ybQk2uUYXi0+wwb3nPMoU5p53e VbXCTb5L5Deh4xHpkiEq/pvcz64gpyf0xL6tzlsC6XcGnIgytZa4ZYl+0VR0497YajDs G532HFm8CGslbZnkFp+u/etqEV1meMJP442YyPI8RJps/Ge7wr4mr+Un8bKTxDiOHCI7 +LFuZuYEt0wyatZ14TsWcEOFxxdH4Sp3dtLpBIUAmc5uZOiCqR6RiIVN13NSwKDbawwq KB8ZMEk8NGewnbnf68usPqhbwzkGga4aaGlno+S/w07s2IpshAHWft990t4dHQeSmwlN hHJg== MIME-Version: 1.0 In-Reply-To: References: <509efbb6$0$29980$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Sat, 10 Nov 2012 19:43:16 -0700 Subject: Re: Method default argument whose type is the class not yet defined To: Python 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1352601828 news.xs4all.nl 6952 [2001:888:2000:d::a6]:38514 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33113 On Sat, Nov 10, 2012 at 7:13 PM, Chris Angelico wrote: > I would not assume that. The origin is a point, just like any other. > With a Line class, you could deem a zero-length line to be like a > zero-element list, but Point(0,0) is more like the tuple (0,0) which > is definitely True. It's more like the number 0 than the tuple (0,0). 0 is the origin on a 1-dimensional number line. (0,0) is the origin on a 2-dimensional number plane. In fact, it might be pointed out that Point(0, 0) is a generalization of 0+0j, which is equal to 0.