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


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

Re: suppressing import errors

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2011-11-15 15:09 -0700
Last post2011-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.


Contents

  Re: suppressing import errors Ian Kelly <ian.g.kelly@gmail.com> - 2011-11-15 15:09 -0700

#15744 — Re: suppressing import errors

FromIan Kelly <ian.g.kelly@gmail.com>
Date2011-11-15 15:09 -0700
SubjectRe: 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.

[toc] | [standalone]


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


csiph-web