Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100434 > unrolled thread

Re: Try: rather than if :

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2015-12-14 16:12 -0700
Last post2015-12-14 16:12 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Try: rather than if : Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-14 16:12 -0700

#100434 — Re: Try: rather than if :

FromIan Kelly <ian.g.kelly@gmail.com>
Date2015-12-14 16:12 -0700
SubjectRe: Try: rather than if :
Message-ID<mailman.0.1450134794.22044.python-list@python.org>
On Mon, Dec 14, 2015 at 3:38 PM, Vincent Davis <vincent@vincentdavis.net> wrote:
> In the code below try is used to check if handle has the attribute name. It
> seems an if statement could be used. Is there reason one way would be
> better than another?

http://www.oranlooney.com/lbyl-vs-eafp/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web