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


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

Re: Cannot step through asynchronous iterator manually

Started byMichael Torrie <torriem@gmail.com>
First post2016-01-30 12:42 -0700
Last post2016-01-30 12:42 -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: Cannot step through asynchronous iterator manually Michael Torrie <torriem@gmail.com> - 2016-01-30 12:42 -0700

#102309 — Re: Cannot step through asynchronous iterator manually

FromMichael Torrie <torriem@gmail.com>
Date2016-01-30 12:42 -0700
SubjectRe: Cannot step through asynchronous iterator manually
Message-ID<mailman.136.1454182970.2338.python-list@python.org>
On 01/30/2016 01:22 AM, Frank Millman wrote:
> There are times when I want to execute a SELECT statement, and test for 
> three possibilities -
>     - if no rows are returned, the object does not exist
>     - if one row is returned, the object does exist
>     - if more that one row is returned, raise an exception

Is there a reason you cannot get SQL to answer this question for you?
Something like:

SELECT count(some_field) WHERE condition

That will always return one row, with one field that will either be 0,
1, or more than 1.

[toc] | [standalone]


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


csiph-web