I have this block of code I want to comment but inline comments don't work. I'm not sure what PEP8 guideline applies here. Advice?
if next_qi < qi + lcs_len \ # If the next qLCS overlaps
and next_ri < ri + lcs_len \ # If the next rLCS start overlaps
and next_ri + lcs_len > ri: # If the next rLCS end overlaps
del candidate_lcs[qi] # Delete dupilicate LCS.
In Python, nothing can come after the
\
line continuation character.However, you can do what you want if you put your condition in parenthesis:
Below is a demonstration:
The relevant PEP 8 guideline is: