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:08:21 -0400 Lines: 11 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> <1468742901.2556137.668478097.6FBDE3C3@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de UfnY+mikDAxgVbFV2dZHpApBRo5tIakAbjky7VZZluaA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:internal': 0.09; 'question.': 0.13; 'how,': 0.16; '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; 'wrote:': 0.16; "aren't": 0.22; 'implicit': 0.22; 'sorry,': 0.22; 'forgot': 0.23; 'header:In- Reply-To:1': 0.24; 'chris': 0.26; 'function': 0.28; 'though,': 0.32; 'choices': 0.33; 'could': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'claim': 0.61; 'header :Message-Id:1': 0.61; 'different': 0.63; 'choose': 0.68; 'jul': 0.72; 'price.': 0.76 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=NIzXvIC/HEBdh7MLaCaNAqDia2g=; b=DQyOEV RTjEPHseSgwuknsRGB1B1eE9Km/5/U891hoeXs4hZp6x6KjBwOXg0tL/Rly8Fg+u IJUwdTTo+PnBc45EN6bkSSjCN4nLSkwDETc4onDTKaAg2HpFv0n+jqZnNiVhwTqR Z0VowdYGSsyqxtOL0cof3GkVAtJjsVPkLYnBg= 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=NIzXvIC/HEBdh7M LaCaNAqDia2g=; b=ZoC4pwXmdymUy157/WA3KzAXGvJM3M1qCTo+qYCIcVnoWRz KcpZUWI36TpLSK3vSXwLbGqijrCcPrgd4sPEwZJgSCY+h9VC+3WFNqYF7WAMyQZL eYm5vSzsLUMyBpiNT1eTAzLQqaqTZblgAWlgl1Ki0yFgRtz6RcH/ymSM5mEw= X-Sasl-Enc: ZCzcaRZUyo1WAVtwOSM3yA9p5qI4gxDc9ow8ZrPxS3G0 1468742901 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: <1468742901.2556137.668478097.6FBDE3C3@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:111558 On Sun, Jul 17, 2016, at 03:51, Chris Angelico wrote: > Currently yes, you can choose to use fractions.Fraction and pay the > price. How, if you have a single type with different representations, > can you make that choice? Sorry, I forgot to answer your question. Though, your implicit claim that it's impossible to make choices if your choices aren't represented by different types is absurd. For example, you could have a function that returns an inexact number with the (approximately) same value as the given number.