Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book

#359: gil--;

Published Thu, Nov 2, 2023, recorded Thu, Nov 2, 2023
Watch this episode on YouTube
Play on YouTube
Watch the live stream replay

About the show

Sponsored by Scout APM

Connect with the hosts

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.

Michael #1: PyCon 2024 is up?

  • May 15 - May 23, 2024 - Pittsburgh, Pennsylvania
  • Conference breakdown:
    • Tutorials: May 15 - 16, 2024
    • Main Conference and Online: May 17 - 19, 2024
    • Job Fair: May 19, 2024
    • Sprints: May 20 - May 23, 2024
  • Tickets aren’t on sale yet
  • Unfortunately, I’m not going (see health and safety guidelines)
  • Attendance numbers over time on Wikipedia

Brian #2: Ruff formatter is production ready

Michael #3: gil--;

  • The Python Steering Council has now formally accepted PEP 703 ("Making the Global Interpreter Lock Optional in CPython")
  • The global interpreter lock will remain the default for CPython builds and python.org downloads.
  • A new build configuration flag, --disable-gil will be added to the configure script that will build CPython with support for running without the global interpreter lock.
  • "In short, the SC accepts PEP 703, but with clear provisio:
    • that the rollout be gradual and break as little as possible,
    • that we can roll back any changes that turn out to be too disruptive – which includes potentially rolling back all of PEP 703 entirely if necessary (however unlikely or undesirable we expect that to be)."
  • Removing the global interpreter lock requires substantial changes to CPython internals, but relatively few changes to the public Python and C APIs.
  • The implementation changes can be grouped into the following four categories:
    • Reference counting
    • Memory management
    • Container thread-safety
    • Locking and atomic APIs

Brian #4: Why is the Django Admin “Ugly”?

  • Vince Salvino
  • Some great quotes from the article:
    • "The Django admin is not ugly, rather, no effort was made to make it a beautiful end-user tool.” - Ken Whitesell
    • “The admin’s recommended use is limited to an organization’s internal management tool. It’s not intended for building your entire front end around.” - Django docs
    • “The Django admin was built for Phil.” - Jacob Kaplan-Moss
    • “Even in the 0.9x days we used to have a image that said “Admin: it’s not your app”.” - Curtis Maloney
  • As Curtis put it, “encouraging people to build their own management interface, and treat admin as a DB admin tool, has saved a lot of people pain... the effort to customise it grows far faster than the payoffs.”

Extras

Brian:

Michael:

Joke: Searching YouTube for bug fixes


Want to go deeper? Check our projects