Lawrence D'Oliveiro wrote:
It would be nice if Python offered a straightforward equivalent to
...
do /*once*/
{
... do stuff ...
if (check1_failed)
break;
... do even more stuff ...
}
while (false);
... cleanup goes here ...
What's
On 05May2009 23:28, Lawrence D'Oliveiro
wrote:
| In message , Gabriel
| Genellina wrote:
|
| > I prefer to put the code inside a function, and just `return` earlier.
|
| It would be nice if Python offered a straightforward equivalent to
|
| ... initialization goes here ...
| do /*once
In message , Gabriel
Genellina wrote:
> I prefer to put the code inside a function, and just `return` earlier.
It would be nice if Python offered a straightforward equivalent to
... initialization goes here ...
do /*once*/
{
... do stuff ...
if (check1_failed)
En Mon, 04 May 2009 19:14:53 -0300, Chris Rebert escribió:
On Mon, May 4, 2009 at 3:02 PM, wrote:
In a python program I ask if the user wants to continue. If they answer
'no', what options do I have to halt execution? I can put the rest of
the
code inside an "if bContinue:" block, but th
robert.t.ly...@seagate.com wrote:
In a python program I ask if the user wants to continue. If they answer
'no', what options do I have to halt execution? I can put the rest of
the code inside an "if bContinue:" block, but that seems awkward. I
have looked at raising an exception, and perha
On Mon, May 4, 2009 at 3:02 PM, wrote:
>
> In a python program I ask if the user wants to continue. If they answer
> 'no', what options do I have to halt execution? I can put the rest of the
> code inside an "if bContinue:" block, but that seems awkward. I have looked
> at raising an exception
In a python program I ask if the user wants to continue. If they answer
'no', what options do I have to halt execution? I can put the rest of the
code inside an "if bContinue:" block, but that seems awkward. I have
looked at raising an exception, and perhaps this is the preferred method,
but