else clauses in while and for loops

Fredrik Lundh effbot at telia.com
Tue Mar 28 00:11:39 CEST 2000

Ralph Corderoy <ralph at inputplus.demon.co.uk> wrote:
> I don't think that is a real need.

so?  do you suggest that we should remove it, and
force people to rewrite their perfectly working pro-
grams, just to make you happy?

or maybe we could use all that energy to work on
something more important?


Return-Path: <falknor at worldspy.net>
Delivered-To: python-list at python.org
Received: from c000.sfo.cp.net (c000-h002.c000.sfo.cp.net [])
	by dinsdale.python.org (Postfix) with SMTP id C8CA81CDDE
	for <python-list at python.org>; Sat, 25 Mar 2000 14:55:34 -0500 (EST)
Received: (cpmta 23052 invoked from network); 25 Mar 2000 11:57:48 -0800
Date: 25 Mar 2000 11:57:48 -0800
Message-ID: <20000325195748.23051.cpmta at c000.sfo.cp.net>
X-Sent: 25 Mar 2000 19:57:48 GMT
Received: from [] by mail.worldspy.net with HTTP;
    25 Mar 2000 11:57:48 PST
Content-Type: text/plain
Content-Disposition: inline
Mime-Version: 1.0
To: gmcm at hypernet.com;, python-list at python.org
From: falknor at worldspy.net
X-Mailer: Web Mail
Subject: Re: Heh, sorry for all these questions so close together.
Sender: python-list-admin at python.org
Errors-To: python-list-admin at python.org
X-BeenThere: python-list at python.org
X-Mailman-Version: 2.0beta1
Precedence: bulk
List-Id: General discussion list for the Python programming language <python-list.python.org>

But sleep takes seconds, not micro... Blaat, i feel dumb now.  0.000001 would be one micro second... So i'll just do it via time.time(), then do the little bit of math, then call time.sleep(stall_time).  Simple enough.. Thanx :)


On Sat, 25 March 2000, "Gordon McMillan" wrote:

> Falknor wrote:
> > The equiv to the gettimeofday is time.time().. that's no prob.  Prob is, it only
> > returns seconds.. not micro seconds.  and the differences in 
> > the C select and the Python one throw me for a little loop.. 
> > Not sure how i could do the same thing with the 
> > select.select() as is done there :)
> time.time returns a float number of seconds. time.sleep takes 
> a float, and for most platforms is implemented in terms of 
> select.
> - Gordon
> -- 
> http://www.python.org/mailman/listinfo/python-list

Get free Internet service and email at http://www.worldspy.com

More information about the Python-list mailing list