[code.view]

[top] / python / PyMOTW / operator / operator_boolean.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     from operator import *
     
     a = -1
     b = 5
     
     print 'a =', a
     print 'b =', b
     print
     
     print 'not_(a)     :', not_(a)
     print 'truth(a)    :', truth(a)
     print 'is_(a, b)   :', is_(a,b)
     print 'is_not(a, b):', is_not(a,b)
     

[top] / python / PyMOTW / operator / operator_boolean.py

contact | logmethods.com