Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15744 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2011-11-15 15:09 -0700 |
| Last post | 2011-11-15 15:09 -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: suppressing import errors Ian Kelly <ian.g.kelly@gmail.com> - 2011-11-15 15:09 -0700
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2011-11-15 15:09 -0700 |
| Subject | Re: suppressing import errors |
| Message-ID | <mailman.2753.1321395004.27778.python-list@python.org> |
On Tue, Nov 15, 2011 at 2:42 PM, Arnaud Delobelle <arnodel@gmail.com> wrote: > It's idiomatic to write "x is None" when you want to know whether x is None. It's also idiomatic to just write "if x:" when you want to know whether x is something or nothing, and that's what I would probably do here. Either is correct.
Back to top | Article view | comp.lang.python
csiph-web