Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Clean Singleton Docstrings Date: Sun, 17 Jul 2016 04:03:39 -0400 Lines: 14 Message-ID: References: <7046c74e-e5ea-4dde-8847-8c556756a563@googlegroups.com> <5789B601.9000604@stoneleaf.us> <9d2a0934-bf26-42a8-9bb2-e4e75b2d2ad3@googlegroups.com> <1468652038.1427719.667878897.460955C0@webmail.messagingengine.com> <1468692272.2410242.668163177.52CA7567@webmail.messagingengine.com> <87wpkluvcp.fsf@elektro.pacujo.net> <87inw4vhhf.fsf@elektro.pacujo.net> <1468742619.2555411.668475737.072BADA7@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de se7F49SxY4nM4Ra1+niz8wYJCdp/+6UdvzERMxBaEYVw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'true,': 0.04; 'feature.': 0.07; 'received:internal': 0.09; 'type:': 0.09; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:Singleton': 0.16; 'ucs-4': 0.16; 'wrote:': 0.16; 'programmer': 0.18; 'saying': 0.22; 'ascii': 0.22; 'header:In- Reply-To:1': 0.24; "doesn't": 0.26; 'chris': 0.26; 'not.': 0.27; 'objects': 0.29; "can't": 0.32; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'header :Message-Id:1': 0.61; 'within': 0.64; 'jul': 0.72; 'price.': 0.76; 'luxury': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=sebnv7iVMW4rJ03Ft/KhHRWoRSc=; b=iaRVy3 H8Ud0Lr1sqnl0GQ6XfhPev34My9Ou19vTqWGiryeVhT+5e/IB819d+tjeUWuTxhk lMfTumfqm+g4DGKaYcZBEDV0fUMh9O/cUBq+/u7trOhsjK3ZS0YlItD3sbqStcRS p+I14E+Y0bBWIHPNTLPeJcKiRzkool4In89Ao= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=sebnv7iVMW4rJ03 Ft/KhHRWoRSc=; b=IgJ5dCqHGXYSXlTKh+dZKtd9it1JMWWONxHY1OjEu144/xM nVabaStRm+nHuSQc7KHnaMsu6xv4SzFC+QvfcozBbNBu7PHp72pwHEToer3QjRtE 59l8Lcj+elP5m+BFz49IzD4+auwlhEBdgi1QuJXUlIzs0xWdUgUWuqhGbwBQ= X-Sasl-Enc: ys/vlIqAVHhED2UrYCmptM7jIAXyhooAv1fkgMPf0SEz 1468742619 X-Mailer: MessagingEngine.com Webmail Interface - ajax-bf4e2c8f In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1468742619.2555411.668475737.072BADA7@webmail.messagingengine.com> X-Mailman-Original-References: <7046c74e-e5ea-4dde-8847-8c556756a563@googlegroups.com> <5789B601.9000604@stoneleaf.us> <9d2a0934-bf26-42a8-9bb2-e4e75b2d2ad3@googlegroups.com> <1468652038.1427719.667878897.460955C0@webmail.messagingengine.com> <1468692272.2410242.668163177.52CA7567@webmail.messagingengine.com> <87wpkluvcp.fsf@elektro.pacujo.net> <87inw4vhhf.fsf@elektro.pacujo.net> Xref: csiph.com comp.lang.python:111557 On Sun, Jul 17, 2016, at 03:51, Chris Angelico wrote: > > True, although the programmer has control over the feature. If you > > *want* the luxury of exact fractions, you pay the price. If you don't, > > you make the numbers inexact. > > Not if you have a single "Number" type: Saying that exact and inexact numbers can't be a single type is like saying positive and negative numbers can't be the same type. Saying that fractions and floats can't be a single type is like saying ASCII strings and UCS-4 strings can't be the same type within the FSR. "Single abstract Number type" doesn't preclude a "FNR" where some Number objects are represented as floats and others are not.