Lets say I have two variables
self.SuperLongSpecificCorperateVariableNameIcantChangeCommunication
and
self.SuperLongSpecificCorperateVariableNameIcantChangeControl
And I need to compare them.
The issue being that, when I put them both in an if statement, it blows past the style checker's line length.
if (self.SuperLongSpecificCorperateVariableNameIcantChangeCommunication != self.SuperLongSpecificCorperateVariableNameIcantChangeControl):
The way around this would be to split this into two lines.
if (self.SuperLongSpecificCorperateVariableNameIcantChangeCommunication \
!= self.SuperLongSpecificCorperateVariableNameIcantChangeControl):
My coworkers are split on whether PEP 8 has you split between conditionals or whether you can split up a conditional itself. Ideally we would get approval to change the variable name, but in the meantime, what does PEP 8 say we should do in this case?