Python Bytes

Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space.

https://pythonbytes.fm/

subscribe
share






episode 362: #362: You can deprecate a global variable?


Topics covered in this episode:

  • Habits of great software engineers
  • Flask 3.0
  • Build Conway's Game of Life With Python
  • polars business
  • Extras
  • Joke
Watch on YouTube

About the show

Sponsored by Scout APM

Connect with the hosts

  • Michael: @mkennedy@fosstodon.org
  • Brian: @brianokken@fosstodon.org
  • Show: @pythonbytes@fosstodon.org

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 11am PT. Older video versions available there too.

Brian #1: Habits of great software engineers

  • As we wind up the year, many people are thinking about goals for the new year.
  • Here’s a decent list to think about
    • Focusing beyond the code
    • Efficiency / Antifragility
    • Joy of tinkering
    • Knowing the why
    • Thinking in systems
    • Tech detox
    • The art of approximation
    • Transferring Knowledge to Other Problems
    • Making Hard Things Easy
    • Playing the Long Game
    • Developing a Code Nose
    • Strong Opinions loosely held

Michael #2: Flask 3.0

  • Deprecate the __version__ attribute. Use feature detection, or importlib.metadata.version("flask"), instead. #5230
    • How do you even do that?
  • This is news to me:

    [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" [metadata] name = "your-package-name" version = "0.1.0"
  • Remove previously deprecated code. #5223

Brian #3: Build Conway's Game of Life With Python

  • Leodanis Pozo Ramos
  • CLI curses version
  • Nice walk through of breaking the problem into parts.

Michael #4: polars business

  • It's a plugin for Polars, which allows you to do business day arithmetic.
  • The big advantage of using this directly (as opposed to converting to pandas/numpy, using their business day tools, and then converting back) is that polars-business fits right in with the Polars lazy API. This means you'll still be able to get the gains from the Polars query optimiser without having to step into eager execution.
  • All you need to use is it is pip install polars-business
  • Written in Rust, but end-users doesn't need Rust to run it, Python is all you need.

Extras

Brian:

  • BLACKFRIDAY code still works for 50% off The Complete pytest Course, Full Course + Community Access, through Nov 30
  • Also Debugging chapter is up, and it includes a small TDD example.

Michael:

  • Dear Python Community by Kenneth Reitz
  • Python 3.13a2 out and Major new features of the 3.13 series, compared to 3.12
  • Thank you Black Friday supporters.

Joke:

  • ai vs dev


fyyd: Podcast Search Engine
share








 November 28, 2023  28m