Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104647
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: hasattr() or "x in y"? |
| Date | Sat, 12 Mar 2016 08:55:20 +1100 |
| Lines | 10 |
| Message-ID | <mailman.9.1457733330.12893.python-list@python.org> (permalink) |
| References | <nbve7c$nbo$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de NOnwm9S4woQr5iGWNLXSRQvTMDTE9oP6XRr3EyoWNeNQ== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'things.': 0.15; '2016': 0.16; 'better:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'point': 0.33; 'view,': 0.33; 'received:google.com': 0.35; 'received:209.85': 0.36; 'subject:: ': 0.37; '12,': 0.37; 'received:209': 0.38; 'different': 0.63; 'mar': 0.65; 'smith': 0.76; '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; bh=FL9wCcdI9Db+A44LCo/CD73w2JHSbB5fwbzT+65rJIw=; b=ASyUz7UrP9flLj4vD8iX/tlwW3N3s7wXXRtxWwvr///OKjKdQUO1pfsEQG07Ty4vTA 3L8DcyL7BmT5kjEqoSfEbn17X9q/P+jzme9E1g9cwnLQ0uR6zgnwuEGTzhzWB40VUE+b DGoCKt5lyAeNGdxDmNgNwyPysYMVr2c3AkvPIll0LiGAzQtCF9EC+DUvE+nf1zOQPb+D vD+9pLVJH29JFUQ+d6FWguN/2OkAsjN7HZRjM8hxGMHYWe7xg5maEsX/E9GWGmL+YRbG /Jqw3jp1cuOh9IM74qwtKy70auePk7Id2RWZRKgoykwryyRW1YumAvQ3cHNF8L67nSRg LxlA== |
| 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:date :message-id:subject:from:cc; bh=FL9wCcdI9Db+A44LCo/CD73w2JHSbB5fwbzT+65rJIw=; b=ah8ZawChLuA6bJSoyh1IAmCn94jjeeUVt8kmLMeGn3zyN76+d/kERhMUDIeKwDCFxG LTl/ZBpU9Qt3epxW7Bz6s9+swpiEPZ0HDKMjZi7CHmb+jyd6HmPPN82qCEi37zzrnrbK fwIVUeUQx1/567UCcB/VTzmDFeWIVmRCLpIjQMXJc548y3wtaUj2MvGabhTNR8FD/cll RUhGfLYi9vO1X6DHs2X2Cg/l+OUpHZMEJOlX1+cLygWNHViNSz9H6C5Zk7O50i9fNc4b vybh8MyGEK37DvjbTwaOGbZMywIgVYQVC8N5bJuVwsdpOKkKy5SW1TD72P4pF1punA+a 3XBA== |
| X-Gm-Message-State | AD7BkJLM4CCTaes44YQhrCokEtg6WaacctFrE1ybBQbawQf7ZU2Dwe/7KnLPYW0U6k1weDbfRQH8IzuqILyBdQ== |
| X-Received | by 10.107.138.75 with SMTP id m72mr13136831iod.31.1457733321032; Fri, 11 Mar 2016 13:55:21 -0800 (PST) |
| In-Reply-To | <nbve7c$nbo$1@dont-email.me> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| 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:104647 |
Show key headers only | View raw
On Sat, Mar 12, 2016 at 8:44 AM, Charles T. Smith <cts.private.yahoo@gmail.com> wrote: > From the performance point of view, which is better: > - hasattr() > - x in y > Mu. They do completely different things. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
hasattr() or "x in y"? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-11 21:44 +0000
Re: hasattr() or "x in y"? Chris Angelico <rosuav@gmail.com> - 2016-03-12 08:55 +1100
Re: hasattr() or "x in y"? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-11 21:53 +0000
Re: hasattr() or "x in y"? Chris Angelico <rosuav@gmail.com> - 2016-03-12 09:04 +1100
Re: hasattr() or "x in y"? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-11 22:05 +0000
Re: hasattr() or "x in y"? Grant Edwards <invalid@invalid.invalid> - 2016-03-11 22:00 +0000
Re: hasattr() or "x in y"? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-03-11 22:18 +0000
Re: hasattr() or "x in y"? Grant Edwards <invalid@invalid.invalid> - 2016-03-11 22:30 +0000
csiph-web