Advertisement
rfmonk

operator_boolean.py

Jan 16th, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. from operator import *
  5.  
  6. a = -1
  7. b = 5
  8.  
  9. print 'a =', a
  10. print 'b =', b
  11. print
  12.  
  13. print 'not_(a)      :', not_(a)
  14. print 'truth(a)     :', truth(a)
  15. print 'is_(a, b)    :', is_(a, b)
  16. print 'is_not(a, b) :', is_not(a, b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement