Python is designed to be more readable, at least for Western readers, than languages in the C family. This is achieved, in part, by using English language keywords and more familiar punctuation. Top level expressions are thus bracketed by the keyword and either a colon or new line, which can be more easily picked put by eye than parentheses.

Using superfluous parentheses can impair this readability by making the code harder to scan and parse by eye. Parentheses often serve as a visual clue for more complex expressions, and adding them unnecessarily can be distracting.

One notable exception to this rule is when an expression has to span multiple lines. In which case, using of parentheses is preferred to using a back slash for line continuation.

Remove the unnecessary parentheses.

In the first of the two examples, most of the expressions are wrapped in parentheses. This is harder to read than the second example, especially to a programmer more familiar with Python than with C or Java.

  • Python Language Reference: Full grammar specification.
  • Google Python Style Guide: Use parentheses sparingly.
  • Python PEP Index: PEP 8.