Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Clean Singleton Docstrings Date: Sat, 16 Jul 2016 02:53:58 -0400 Lines: 12 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> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de f5fWchOBd+ckDYnOSSf9PAZ+iIz6PArxOKqsQ7JVtuqQ== 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; '16,': 0.03; 'received:internal': 0.09; 'ascii,': 0.16; 'bugs,': 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; 'string': 0.17; 'attribute': 0.18; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'too.': 0.30; 'ones': 0.35; 'unicode': 0.35; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'difference': 0.38; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'mark': 0.40; 'header:Message-Id:1': 0.61; 'different': 0.63; 'our': 0.64; 'between': 0.65; 'jul': 0.72; 'float,': 0.84 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=OEeDNo4WssBLbeikZUmPVP3w7cQ=; b=QXKQEs Y2SZCfYmCno5s2usBCvAjy694IC+BxSEh6x7OrJO8FvqeuHM4Ho0QZVZDOUOe1ES wDcfH9BGvaUqgT/81iQt3Tbgdx6ed7dMbVhTwFz5tB8EWCEMhGjdprk6VqR/sWg6 DC4DqkFNBaxKl3e37K2WUuq1Gyy0zUZFk9vh0= 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=OEeDNo4WssBLbei kZUmPVP3w7cQ=; b=m0UNrg68iUWpYonI5AY5OoQrCd3Anz/yRRvB51U3Gy+gW9s BUcLP/8pxcYCttVo4MYBsvBXk9JXp41xK868HJ2iv6QQ6c2o431LEILcNtMng9YE qx5FoNhke5IAFFvn44PNiO/il5oOS+A7YX5vYQu5dvqm+4qvPQhYFjqg1SQU= X-Sasl-Enc: 0whbLegP4bBYFdU+oaDN28MsAlUIvJJUrpDQP6/DZXmj 1468652038 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: <1468652038.1427719.667878897.460955C0@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> Xref: csiph.com comp.lang.python:111497 On Sat, Jul 16, 2016, at 02:29, Chris Angelico wrote: > The difference between ints and floats can lead to bugs, too. Which > one should we eliminate? Eliminate both of them. Move to a single abstract numeric type* a la Scheme, with an "inexact" attribute (inexact numbers may or may not be represented by a float, or by the same bigint/decimal/rational types as exact ones with a flag set to mark them as inexact.) *which may have multiple concrete representations, just as our single abstract unicode string type has different concrete representations for ASCII, Latin-1, UCS-2, and UCS-4.