Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Suggestion: make sequence and map interfaces more similar Date: Thu, 31 Mar 2016 09:27:53 -0400 Lines: 22 Message-ID: References: <56fb677f$0$11121$c3e8da3@news.astraweb.com> <56fba7d3$0$1616$c3e8da3$5496439d@news.astraweb.com> <56fbc518$0$1593$c3e8da3$5496439d@news.astraweb.com> <56fbf73d$0$1591$c3e8da3$5496439d@news.astraweb.com> <56fc8e09$0$1600$c3e8da3$5496439d@news.astraweb.com> <56fcfdc6$0$1612$c3e8da3$5496439d@news.astraweb.com> <56FD086F.2090301@rece.vub.ac.be> <56FD2158.2050406@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de FP+YVRxEgisdyZU5Y5IG/wnvCQxSh7FPPcLChxALKbbw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.073 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'mess': 0.09; 'received:internal': 0.09; 'thread': 0.10; 'python': 0.10; 'accordingly.': 0.13; 'argument': 0.15; 'thu,': 0.15; 'discuss.': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 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:interfaces': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; '31,': 0.22; 'lawrence': 0.22; 'position:': 0.22; 'slightly': 0.23; 'examples': 0.24; 'header:In-Reply-To:1': 0.24; 'example': 0.26; 'chris': 0.26; 'far,': 0.29; 'unified': 0.29; 'knows': 0.32; 'getting': 0.33; 'useful': 0.33; "i'll": 0.33; 'mapping': 0.35; 'something': 0.35; 'but': 0.36; 'instead': 0.36; 'there': 0.36; '(and': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'method': 0.37; 'beyond': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'mark': 0.40; 'some': 0.40; 'your': 0.60; 'header:Message- Id:1': 0.61; 'subject:more': 0.61; 'discuss': 0.61; 'real': 0.62; 'strange': 0.63; 'personal': 0.63; 'different': 0.63; 'mar': 0.65; 'request.': 0.66; 'judge': 0.66; 'python-list': 0.66; 'worth': 0.67; 'act': 0.67; 'theoretical': 0.72; 'yourself': 0.73; 'angelico:': 0.84; 'beats': 0.84; 'pardon': 0.84; 'schreef': 0.84; 'subscripts': 0.84; 'toy': 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=3T2Dz9sSAzkZ5sfe70RGQE8/sD0=; b=hcAIeC FQMg/k0l8Qy5YNufAwGD3xIC6qG0DtgJBgZDe6PH9240HpbGdpDYuCuwKPj4uShh ID68MI6/0PwhNtOxhPZoZPwfJwCqCMvaDhUy/cXWxBMbDen33gRhTbUwnGysSadq FMq3eZX5KDgLgSdbr1Kzq3FBRA6Xabve5o0is= 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=3T2Dz9sSAzkZ5sf e70RGQE8/sD0=; b=Y0Ey1CpwFfIuuEQ4qupDC6dg2B9rktEnosyXCRc3uBwUdPz HdueK2a8Wc4Y4yCRiPDqBe6D11a+jlYaUiKPNdlwhhfcTdRP+RoiGMSuv/ULejfz ptpeEmYW2GidYiT6zKpMGldkyoy44jVv2YW6KXKqO61UzRqpAfhow80nRFLQ= X-Sasl-Enc: iZ50Owc/0yDZL9I0n262RJ58JVlPs3hrqXfgBEhVtR61 1459430873 X-Mailer: MessagingEngine.com Webmail Interface - ajax-9aaf2efb In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:106157 On Thu, Mar 31, 2016, at 09:17, Mark Lawrence via Python-list wrote: > On 31/03/2016 14:08, Antoon Pardon wrote: > > Op 31-03-16 om 13:57 schreef Chris Angelico: > >> Okay. I'll put a slightly different position: Prove that your proposal > >> is worth discussing by actually giving us an example that we can > >> discuss. So far, this thread has had nothing but toy examples (and > >> bogoexamples that prove nothing beyond that the author knows how to > >> mess with Python - fun, but not a strong argument on either side). > >> Give us some real meat to work with, instead of these drips of > >> tantalizing blood. > > > > What a strange request. Whether or not something is worth discussing > > is a personal judgement. So there can be no proof of such a thing. > > I would say: judge for yourself and act accordingly. > > Drivel. This is comp.lang.python, where "Practicality beats purity" > every time, not comp.theoretical.claptrap. So can we discuss how a unified method to get a set of all valid subscripts (and/or subscript-value pairs) on an object would be a useful thing to have without getting bogged down in theoretical claptrap about the meaning of the mapping contract?