What is the dummy statement that do nothing in Python?

Analog Kid ajdeshpande at gmail.com
Wed Jan 31 12:04:15 EST 2007


hey dongsheng:
not too sure what you are looking for ... but i guess a simple "pass"
statement should do it ...

if a > b: pass


hth,
-ajay


On 1/31/07, Dongsheng Ruan <ruan at jcmills.com> wrote:
>
> 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!
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
BBQ - "Spare (My) Ribs" being contemplated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070131/4ac46ecc/attachment.html>


More information about the Python-list mailing list