no __nonzero__() : Nonzero : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Nonzero »

 

no __nonzero__()


class C: pass
c = C()

print bool(c)
print bool(C)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Nonzero