Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100434 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2015-12-14 16:12 -0700 |
| Last post | 2015-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.
Re: Try: rather than if : Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-14 16:12 -0700
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2015-12-14 16:12 -0700 |
| Subject | Re: 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/
Back to top | Article view | comp.lang.python
csiph-web