SynertyPeek

Contents:

  • How to Use Peek Documentation
  • Overview
  • Tutorials
    • Peek Plugin Tutorial
    • Twisted Python Tutorial
    • Python Gotchas
      • List Iteration Modification
      • Mutable Class Variables
      • Mutable Default Function Arguments
    • ReStructuredText Cheat Sheet
  • Setup OS Requirements
  • Deploy Peek Release
  • Administration
  • Capacitor App
  • Peek Development
  • Troubleshooting
  • Utilities
  • API Reference
  • Release Notes
  • Security Errata
SynertyPeek
  • Tutorials
  • Python Gotchas
  • View page source

Python GotchasΒΆ

Python has a few key differences when compared to other, compiled languages, which occasionally cause unexpected behaviour.

Contents:

  • List Iteration Modification
    • Description
    • Expected Result
    • Actual Output
    • Explanation
  • Mutable Class Variables
    • Description
    • Expected Result
    • Actual Output
    • Why this causes confusion
    • What is happening
    • Demonstration
  • Mutable Default Function Arguments
    • Description
    • Expected Result
    • Actual Result
    • Explanation
Previous Next

© Copyright 2016, Synerty.

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