[Tutor] Strange operator

Chad Crabtree flaxeater at yahoo.com
Thu Nov 4 23:49:13 CET 2004


I was perusing the wax sourcecode and ran accross this
        style |= styles.frame(kwargs)
        style |= styles.window(kwargs)

the pipe-equal operator is something I've never seen this before,
after 
a little searching I found this

Bitwise OR              *|*        1 if lhs bit OR rhs bit = 1

http://www.mhuffman.com/notes/language/py_intro.htm#LOGIC

which confuses me even more because I'm not sure how this is useful. 
Could someone please explain this?




		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 



More information about the Tutor mailing list