Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Clean Singleton Docstrings Date: Sun, 17 Jul 2016 07:02:14 +1000 Lines: 18 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 0VjaiF+0jfAujcjq6R6HoQFt404woqFpinYbrRJ69whg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'nicely': 0.07; 'cc:addr:python-list': 0.09; 'semantics': 0.09; 'stored': 0.10; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Singleton': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'fraction': 0.22; 'am,': 0.23; '(or': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'decimal': 0.29; 'getting': 0.33; 'point': 0.33; 'class': 0.33; 'case,': 0.34; 'received:google.com': 0.35; 'should': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'format': 0.39; 'different': 0.63; 'jul': 0.72; 'power': 0.72; 'chrisa': 0.84; 'to:none': 0.91; 'choose.': 0.91 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:cc; bh=YD1jsFYvk1p/aIfclLaSYiXu7L7brDwkh2xMCa7AT44=; b=WfvSBcMwrOXrf4mv2Dy6IUgvji7m9yKdbdzW8HCf064cV3ti5Tsrrx4Y3FggMhcRzh AnqACcF5HkMBe8B3Q+gzL3Y511+Zxg/kiL46Oqg3UoCMdHdoeCfQavR5vY/jfyxzMi3J sstHWqzAihVwVRMJPGTRu8Y4cTCyRQgSFZPQEeCir5Ue5y2WR7Th1cdSHctl7KyeUNzW UER4Z3L+KEFaM7CRZrATkzYLEDdgtPadaQS2eJpZLT9yywMA8Y5eW09FCsepYOpIyHed AR9q/Wx6kynZwGmIYhRK7nolrEFjpPqnlLqayty5+5VfWa1ewLUQKchQBXzk+NYcxPMv rIkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=YD1jsFYvk1p/aIfclLaSYiXu7L7brDwkh2xMCa7AT44=; b=eGRQx5MOhSc7e3IkaMNU1MoDuMEVbdbww8fVQNYxNtfvHPw81iRfAMu8xMSRbLK2D3 c+kPhrFL+hFpI3cJQbM652Tf8CneJGyQXgCMupsOJm9pHr2RlF76IayYd2Fm1JqzpoO7 mo9u5MofNXmTCzbLw0hCscOwOSZjwG2XtS2MqebsPEmYTwYehMYo/qnLH9VTTlAov+zb aMuG6DzuZ1OoMWZHCvMErGnhrY4Et+NpLC5uZS9LDaXAEWQ6LAcOBz18xMad/2jeDuaF qQRFc8kJrCYyuVkDzWqpDc52CUWKyCmBqJLdG7Z5hGCZRgxNfNNVjazZzX5s2x/aLD1T nLYw== X-Gm-Message-State: ALyK8tI3v2AkENQW1YJS8pnfjgNn/FVv1RVQh99jgxbSWyIc2/2ZGktNQHQ/K2zOTZSNK5oQBadeRO6J2Sr5AA== X-Received: by 10.194.169.98 with SMTP id ad2mr5697438wjc.117.1468702934855; Sat, 16 Jul 2016 14:02:14 -0700 (PDT) In-Reply-To: <1468692272.2410242.668163177.52CA7567@webmail.messagingengine.com> 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: 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> Xref: csiph.com comp.lang.python:111522 On Sun, Jul 17, 2016 at 4:04 AM, Random832 wrote: > On Sat, Jul 16, 2016, at 03:27, Chris Angelico wrote: >> Will an "Exact" non-integer be stored as Decimal or >> Fraction? How do you know? They have vastly different semantics, and >> you should be able to choose. > > Er, the point is for them to _not_ have different semantics. A decimal > storage format would simply be an optimization for a fraction whose > denominator is a power of 10 (or of 2 and 5) > > The semantics of the current Decimal class are those of an inexact > number. In that case, an 'Exact' non-integer will have appalling performance - fractions.Fraction doesn't really work all that nicely when the numbers start getting huge. ChrisA