Python Anti-Patterns
  • Correctness
    • Accessing a protected member from outside the class
    • Assigning a lambda expression to a variable
    • Assigning to built-in function
    • Bad except clauses order
    • Bad first argument given to super()
    • else clause on loop without a break statement
    • __exit__ must accept 3 arguments: type, value, traceback
    • Explicit return in __init__
    • __future__ import is not the first non-docstring statement
    • Implementing Java-style getters and setters
    • Indentation contains mixed spaces and tabs
    • Indentation contains tabs
    • Method could be a function
    • Method has no argument
    • Missing argument to super()
    • Using a mutable default value as an argument
    • No exception type(s) specified
    • Not using defaultdict()
    • Not using else where appropriate in a loop
    • Not using explicit unpacking
    • Not using get() to return a default value from a dict
    • Not using setdefault() to initialize a dictionary
  • Maintainability
  • Readability
  • Security
  • Performance
  • Django
 
Python Anti-Patterns
  • Documentation »
  • Correctness
  • View page source

CorrectnessΒΆ

  • Accessing a protected member from outside the class
  • Assigning a lambda expression to a variable
  • Assigning to built-in function
  • Bad except clauses order
  • Bad first argument given to super()
  • else clause on loop without a break statement
  • __exit__ must accept 3 arguments: type, value, traceback
  • Explicit return in __init__
  • __future__ import is not the first non-docstring statement
  • Implementing Java-style getters and setters
  • Indentation contains mixed spaces and tabs
  • Indentation contains tabs
  • Method could be a function
  • Method has no argument
  • Missing argument to super()
  • Using a mutable default value as an argument
  • No exception type(s) specified
  • Not using defaultdict()
  • Not using else where appropriate in a loop
  • Not using explicit unpacking
  • Not using get() to return a default value from a dict
  • Not using setdefault() to initialize a dictionary
Next Previous

Sphinx theme provided by Read the Docs - Last updated: Sep 29, 2020
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy