why pass statement?

Pettersen, Bjorn S BjornPettersen at fairisaac.com
Tue Sep 16 20:58:34 CEST 2003


> From: M-a-S [mailto:NO-MAIL at hotmail.com] 
> 
> Why is there the pass statement? I think, the expression 
> statement would be enough:
> 
> class C:
>     None
> 
> while True:
>     None

Sure, but None doesn't seem to be the right value:

 class C:
    42

 while 1:
    42

-- bjorn





More information about the Python-list mailing list