RE: What is the dummy statement that do nothing in Python?
- From: "Carroll, Barry" <Barry.Carroll@xxxxxxx>
- Date: Wed, 31 Jan 2007 09:07:15 -0800
-----Original Message-----just
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
holds space and does nothing.will
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
beGreetings:
error message.
Does anybody know what to insert there?
Thanks!
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
.
- Prev by Date: Re: What is the dummy statement that do nothing in Python?
- Next by Date: Re: What is the dummy statement that do nothing in Python?
- Previous by thread: Re: What is the dummy statement that do nothing in Python?
- Next by thread: Python **kwargs ?
- Index(es):