Logo
2.4.0-beta2

Contents:

  • Quickstart Guide
  • Installation Guide
  • Operational Guide
  • Developer Guide
    • Architecture Documents
    • Design Documents
    • How to build MetalK8s
    • How to run components locally
    • Development Best Practices
      • Python best practices
    • Integrating with MetalK8s
  • Glossary
MetalK8s
  • Docs »
  • Developer Guide »
  • Development Best Practices
  • Edit on GitHub

Development Best Practices¶

  • Python best practices
    • Import
      • Avoid from module_foo import symbol_bar
        • Rationale
        • Example
        • References
    • Naming
      • Predicate functions
        • Rationale
        • Example
    • Patterns and idioms
      • Don’t write code vulnerable to “Time of check to time of use”
        • Rationale
        • Examples
        • References
      • Minimize the amount of code in a try block
        • Rationale
      • Don’t use hasattr in Python 2
        • Rationale
        • Examples
        • References
Next Previous

© Copyright 2019, Scality Revision cc139a41.

Built with Sphinx using a theme provided by Read the Docs.