TypeNone field detection

Joe Blow joeblow at nowhere.nohow
Sat Apr 19 06:40:24 EDT 2008


On Wed, 16 Apr 2008 21:13:18 -0400, Steve Holden wrote:
> 
> Since there is only one instance of TypeNone (the value we reference as 
> None) the easiest test is
> 
>    if x is None:
> 

Thanks... the "if x is None:" statement is exactly what I was looking for.



More information about the Python-list mailing list