RE: What is the dummy statement that do nothing in Python?




-----Original Message-----
From: Dongsheng Ruan [mailto:ruan@xxxxxxxxxxx]
Sent: Wednesday, January 31, 2007 8:50 AM
To: python-list@xxxxxxxxxx
Subject: What is the dummy statement that do nothing in Python?

I remember that in python there is some kind of dummy statement that
just
holds space and does nothing.

I want it to hold the place after a something like if a>b: do nothing

I can't just leave the space blank after if statement because there
will
be
error message.

Does anybody know what to insert there?

Thanks!


Greetings:

Try 'pass':

<CODE>
if a>b:
pass
else:
dosomething()
</CODE>

Regards,

Barry
barry.carroll@xxxxxxx
541-302-1107
________________________
We who cut mere stones must always be envisioning cathedrals.

-Quarry worker's creed


.