Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100438
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Try: rather than if : |
| Date | Tue, 15 Dec 2015 10:51:54 +1100 |
| Lines | 10 |
| Message-ID | <mailman.4.1450137117.22044.python-list@python.org> (permalink) |
| References | <CALyJZZViT33d8iob-5PoYnJOdPU2RzSzt3YAic_GRaAxN+wE1A@mail.gmail.com> <20151214231420.GA20631@cskk.homeip.net> <CALyJZZWn-UJPkMtNOBX9YcvAmWgA4qTo7_LwhHjciwevmrn1xw@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de W9PigQb9zQdG7o9Tjk+mnA4kINStscFz2U638qA+zeuA== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.020 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'cc:addr:python-list': 0.09; '"write': 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; 'try:': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'dec': 0.23; 'header:In- Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'raise': 0.29; '15,': 0.30; 'tue,': 0.34; 'except': 0.34; 'received:google.com': 0.35; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; '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=taz2ujXkO3PfFU7alDO41wI2wxUAX5ubZdPL+k9XbO8=; b=uOVyom4OjHeK6IeIQmx1XA8jrh8cs7UNDcgoRtKtR2cODm06WSbVF4B8Nr0so5kP5o Az/DkNzuc7adXGIkLyLN3IIcp4MjK9h4EKqxfaAqbm7uCgFTmhgeV0CjIKq5M4JY0kj6 qShU6PPhZHMZExNl4N7WGZYfk60ZxQik7f5cLbl7S9ybNpP8AGLeVTrQkUklbDH1VRSg B48ECGtUTRGt7c9e88udhmm58amPH+tdmyUiDgM5YoDo1xZZUB8rmBN+SNM2jCjMIrAR ta/G73eaHCiRqT0oOECxp4Q2MsStfoFsDQ0nor/xphF9tUDcl7KH2yGmIcVtShtCSOsI ZOrA== |
| X-Received | by 10.50.28.19 with SMTP id x19mr991696igg.92.1450137114397; Mon, 14 Dec 2015 15:51:54 -0800 (PST) |
| In-Reply-To | <CALyJZZWn-UJPkMtNOBX9YcvAmWgA4qTo7_LwhHjciwevmrn1xw@mail.gmail.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:100438 |
Show key headers only | View raw
On Tue, Dec 15, 2015 at 10:48 AM, Vincent Davis <vincent@vincentdavis.net> wrote: > try: > write = handel.write > except AttributeError: > raise Just "write = handel.write" :) ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Try: rather than if : Chris Angelico <rosuav@gmail.com> - 2015-12-15 10:51 +1100
csiph-web