I was playing with wx.Frame.SetWindowStyleFlag() and noticed that to add a new flag I can use either '+' or '|', both resulting the same. My question is, is there a situation where this yields a different result? And is there any performance difference between the 2? I noticed that book like wxPython Application development cookbook use '|' instead of '+'.
I would recommend always using "|". The only time I've seen other bitwise operators used is in the AGW library's demos in the wxPython demo. I doubt there's a difference in speed though. The "|" is the only one I see used regularly and since Robin Dunn (creator of wxPython) is always using it, I think we should too.
wxPython adding Flag