Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98963
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Which type should be used when testing static structure appartenance |
| Date | Wed, 18 Nov 2015 23:40:09 +1100 |
| Lines | 8 |
| Message-ID | <mailman.411.1447850412.16136.python-list@python.org> (permalink) |
| References | <mailman.388.1447770859.16136.python-list@python.org> <564c62f3$0$1593$c3e8da3$5496439d@news.astraweb.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de WySHN9XuAv8BPe0tqQ7iLAO0eH52X/CE7cJC64UDYFyQ== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'literal': 0.09; 'tuple.': 0.09; 'python': 0.10; '2.7': 0.13; 'wed,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'literals': 0.16; 'literals.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:type': 0.16; 'subject:when': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'too.': 0.30; 'code': 0.30; 'are:': 0.32; 'choices': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.35; 'nov': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:209': 0.38; 'questions': 0.40; 'forget': 0.60; 'chrisa': 0.84; 'to:none': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=5fJ+Yn1AAGFA3FCWOMxbB5elMb3Q6XfLxubWPlRnUv4=; b=MbhK7F4g2tmHcAeiBjMic+hCfGtYK1/lfD3FfAP3bXsbMH9WDx62BFF0ttvQtabZpY HyffRtKx73B6zFb9mC3wXVUK1xZF5bJlBCMyV8XPgYtPykl06iksm7wF0WTdUfg59KO5 JiUZXXSa94sMsKuSh3CJu2/gA8M6b6ZsNX8J8Za8NBqdmpSPLjFg1yPyACpa8FTo8RvV ZeFDEQAXcGSWcLUEHkwjwLjLbFbrGHkkf0mKot6HxAa5cI0K5icJx5hup94DplY3DgLo oL8Asfca6s0gyBIL1Rou+NYDAkpUnpbfUWLvczgsW6T6eIiT3czuTyk3BSOSA7Lg8wkW vzsQ== |
| X-Received | by 10.107.3.163 with SMTP id e35mr2369618ioi.157.1447850409245; Wed, 18 Nov 2015 04:40:09 -0800 (PST) |
| In-Reply-To | <564c62f3$0$1593$c3e8da3$5496439d@news.astraweb.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:98963 |
Show key headers only | View raw
On Wed, Nov 18, 2015 at 10:37 PM, Steven D'Aprano <steve@pearwood.info> wrote: > How about Python 3? Python 3 has the advantage of using set literals. 2.7 has set literals too. All the questions of performance should be secondary to code clarity, though; so I would say the choices are: Set literal if available, else tuple. Forget the performance. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Which type should be used when testing static structure appartenance Nicolas Évrard <nicoe@altern.org> - 2015-11-17 11:27 -0300
Re: Which type should be used when testing static structure appartenance Steven D'Aprano <steve@pearwood.info> - 2015-11-18 22:37 +1100
Re: Which type should be used when testing static structure appartenance Chris Angelico <rosuav@gmail.com> - 2015-11-18 23:40 +1100
Re: Which type should be used when testing static structure appartenance Steven D'Aprano <steve@pearwood.info> - 2015-11-19 00:30 +1100
Re: Which type should be used when testing static structure appartenance Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-11-18 13:32 +0000
Re: Which type should be used when testing static structure appartenance Chris Angelico <rosuav@gmail.com> - 2015-11-19 00:42 +1100
csiph-web