I can't find in PEPs information about style of bitwise operators (|, &), in this code in particular:
class MySplashScreen(wx.SplashScreen):
def __init__(self, parent=None):
wx.SplashScreen.__init__(self, logo.getBitmap(), wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT, 2000, parent)
Should I use spaces in this case (wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT)?
I would definitely use spaces on either side. Otherwise, it'd hard to spot the | in between the variable/constant names.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With