The Real Python Podcast

Drawing Fractals With Python and Working With a Weather API

Feb 18, 2022
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

macOS Drops System Python 2.7

  • Apple removed system Python 2.7 from macOS Monterey 12.3, nudging developers toward Python 3 and package managers.
  • The Xcode command-line tools now provide a newer Python (e.g., 3.8), or install Python directly to avoid system-version pitfalls.
ADVICE

Control Pygame Loops To Prevent Tearing

  • Avoid running a Pygame loop as fast as possible; implement a controlled main loop with vsync and weights to prevent tearing and blocking.
  • Gliff's article uses a coroutine pattern with an await weight and vsync to drop full frames instead of half-drawn frames when blocking occurs.
INSIGHT

Black Enters Stable Release With Preview Flag

  • Black reaching a stable 22.1.0 marks a shift to a formal stability policy for code formatting.
  • The new --preview flag lets users trial experimental formatting without breaking the stability guarantee across a calendar year.
Get the Snipd Podcast app to discover more snips from this episode
Get the app