> -----Original Message----- > From: Dongsheng Ruan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 31, 2007 8:50 AM > To: python-list@python.org > 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 [EMAIL PROTECTED] 541-302-1107 ________________________ We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed -- http://mail.python.org/mailman/listinfo/python-list