Podbean logo
  • Discover
  • Podcast Features
    • Podcast Hosting

      Start your podcast with all the features you need.

    • Podbean AI Podbean AI

      AI-Enhanced Audio Quality and Content Generation.

    • Blog to Podcast

      Repurpose your blog into an engaging podcast.

    • Video to Podcast

      Convert YouTube playlists to podcasts, videos to audios.

  • Monetization
    • Ads Marketplace

      Join Ads Marketplace to earn through podcast sponsorships.

    • PodAds

      Manage your ads with dynamic ad insertion capability.

    • Apple Podcasts Subscriptions Integration

      Monetize with Apple Podcasts Subscriptions via Podbean.

    • Live Streaming

      Earn rewards and recurring income from Fan Club membership.

  • Podbean App
    • Podcast Studio

      Easy-to-use audio recorder app.

    • Podcast App

      The best podcast player & podcast app.

  • Help and Support
    • Help Center

      Get the answers and support you need.

    • Podbean Academy

      Resources and guides to launch, grow, and monetize podcast.

    • Podbean Blog

      Stay updated with the latest podcasting tips and trends.

    • What’s New

      Check out our newest and recently released features!

    • Podcasting Smarter

      Podcast interviews, best practices, and helpful tips.

  • Popular Topics
    • How to Start a Podcast

      The step-by-step guide to start your own podcast.

    • How to Start a Live Podcast

      Create the best live podcast and engage your audience.

    • How to Monetize a Podcast

      Tips on making the decision to monetize your podcast.

    • How to Promote Your Podcast

      The best ways to get more eyes and ears on your podcast.

    • Podcast Advertising 101

      Everything you need to know about podcast advertising.

    • Mobile Podcast Recording Guide

      The ultimate guide to recording a podcast on your phone.

    • How to Use Group Recording

      Steps to set up and use group recording in the Podbean app.

  • All Arts Business Comedy Education
  • Fiction Government Health & Fitness History Kids & Family
  • Leisure Music News Religion & Spirituality Science
  • Society & Culture Sports Technology True Crime TV & Film
  • Live
  • How to Start a Podcast
  • How to Start a Live Podcast
  • How to Monetize a podcast
  • How to Promote Your Podcast
  • How to Use Group Recording
  • Log in
  • Start your podcast for free
  • Podcasting
    • Podcast Features
      • Podcast Hosting

        Start your podcast with all the features you need.

      • Podbean AI Podbean AI

        AI-Enhanced Audio Quality and Content Generation.

      • Blog to Podcast

        Repurpose your blog into an engaging podcast.

      • Video to Podcast

        Convert YouTube playlists to podcasts, videos to audios.

    • Monetization
      • Ads Marketplace

        Join Ads Marketplace to earn through podcast sponsorships.

      • PodAds

        Manage your ads with dynamic ad insertion capability.

      • Apple Podcasts Subscriptions Integration

        Monetize with Apple Podcasts Subscriptions via Podbean.

      • Live Streaming

        Earn rewards and recurring income from Fan Club membership.

    • Podbean App
      • Podcast Studio

        Easy-to-use audio recorder app.

      • Podcast App

        The best podcast player & podcast app.

  • Advertisers
  • Enterprise
  • Pricing
  • Resources
    • Help and Support
      • Help Center

        Get the answers and support you need.

      • Podbean Academy

        Resources and guides to launch, grow, and monetize podcast.

      • Podbean Blog

        Stay updated with the latest podcasting tips and trends.

      • What’s New

        Check out our newest and recently released features!

      • Podcasting Smarter

        Podcast interviews, best practices, and helpful tips.

    • Popular Topics
      • How to Start a Podcast

        The step-by-step guide to start your own podcast.

      • How to Start a Live Podcast

        Create the best live podcast and engage your audience.

      • How to Monetize a Podcast

        Tips on making the decision to monetize your podcast.

      • How to Promote Your Podcast

        The best ways to get more eyes and ears on your podcast.

      • Podcast Advertising 101

        Everything you need to know about podcast advertising.

      • Mobile Podcast Recording Guide

        The ultimate guide to recording a podcast on your phone.

      • How to Use Group Recording

        Steps to set up and use group recording in the Podbean app.

  • Discover
  • Log in
    Sign up free
Python Bytes

Python Bytes

Technology

#263 It’s time to stop using Python 3.6

#263 It’s time to stop using Python 3.6

2021-12-15
Download Right click and do "save link as"

Watch the live stream:

Watch on YouTube

About the show

Sponsored by us:

  • Check out the courses over at Talk Python
  • And Brian’s book too!

Special guest: Laís Carvalho

Michael #1: Django 4.0 released

  • Django is picking up speed:
  • 4.0 Dec 2021 (+1)
  • 3.0 Dec 2020 (+3)
  • 2.0 Dec 2017 (+7)
  • 1.0.1 May 2010
  • Feature highlights:
    • The new RedisCache backend provides built-in support for caching with Redis.
    • To ease customization of Forms, Formsets, and ErrorList they are now rendered using the template engine.
    • The Python standard library’s zoneinfo is now the default timezone implementation in Django.
    • scrypt password hasher: The new scrypt password hasher is more secure and recommended over PBKDF2. However, it’s not the default as it requires OpenSSL 1.1+ and more memory.
  • Django 3.2 has reached the end of mainstream support. The final minor bug fix release, 3.2.10, was issued today. Django 3.2 is an LTS release and will receive security and data loss fixes until April 2024.
  • Some backwards incompatible changes you’ll want to be aware of when upgrading from Django 3.2 or earlier.
  • They’ve begun the deprecation process for some features.
  • Django 4.0 supports Python 3.8, 3.9, and 3.10.

Brian #2: python-minifier

  • Suggested by Lance Reinsmith
  • My first thought was “we don’t need a minifier for Python”
  • The docs give one reason:
    • “AWS Cloudformation templates may have AWS lambda function source code embedded in them, but only if the function is less than 4KiB. I wrote this package so I could write python normally and still embed the module in a template.”
  • Lance has another reason:
    • “I needed it because the RAM on Adafruit boards using the common M0 chip is around 192KB to 256KB total--not all of which is available to your program. To get around this, you can either 1) compile your code to an .mpy file or 2) minify it. The second worked for me and allowed me to alter it without constantly re-compiling.”
  • Fair enough, what does it do?
  • All of these features are options you can turn off, and are documented well:
    • Combine Import statements
    • Remove Pass statements
    • Remove literal statements (docstrings)
    • Remove Annotations
    • Hoist Literals
    • Rename Locals, with preserved Locals list
    • Rename Globals, with preserved Globals list
    • Convert Positional-Only Arguments to Normal Arguments
  • Also looks like it replaces spaces with tabs
    • Begrudgingly, that makes sense in this context.
  • You can try it at python-minifier.com

    Laís #3: It’s time to stop using Python 3.6

  • Python 3.6 is reaching the end of it’s life in 1 week and 1 day (Dec 23rd), i.e. no more releases after it.

  • You should care because the Python dev team will no longer release security updates for 3.6 ⚠️
  • if you use Linux, you have a bit more time BUT security updates will be released and bug fixes will not.
  • also, Python 3rd party libraries and frameworks will drop support for 3.6 soon enough. See the log4j issue and Java.
  • Brian might like this one: Grype - a vulnerability scanner for container images and filesystems

Michael #4: How to Visualize the Formula 1 Championship in Python

  • Race Highlights | 2021 Abu Dhabi Grand Prix
  • Formula 1: Drive to Survive (Season 3) | Official Trailer
  • Wanting to get into Formula 1 data analysis, the Ergast API is a very good starting point.
  • This tutorial will show you how to use data from the Ergast API to visualize the changes in the 2021 championship standings over the rounds.
  • Introduces fastf1: Wrapper library for F1 data and telemetry API with additional data processing capabilities.

Brian #5: nbdime: Jupyter Notebook Diff and Merge tools

  • Suggestion from Henrik Finsberg
  • “you recently covered ‘jut’ for viewing Jupyter notebooks from the terminal. Check out ‘mbdime’.” (that was episode 258)
  • So I did. And it looks cool.
  • nbdime provides tools for diffing and merging of Jupyter Notebooks.
    • nbdiff compare notebooks in a terminal-friendly way
    • nbmerge three-way merge of notebooks with automatic conflict resolution
    • nbdiff-web shows you a rich rendered diff of notebooks
    • nbmerge-web gives you a web-based three-way merge tool for notebooks
    • nbshow present a single notebook in a terminal-friendly way

Laís #6: Using AI to analyse and recommend software stacks for Python apps

  • thanks Fridolin!
  • Project Thoth: an open source cloud-based Python dependency resolver
    • ML (reinforcement learning) that solves dependency issues taking into consideration runtime envs, hardware and other inputs. Using Markov’s decision process.
    • “a smarter pip” that instead of using backtracking, precomputes the dependency information and stores it in a database that can be queried for future resolutions. Using pre-specified criteria by the developer.
  • In summary:
    • Thot’s resolver uses automated bots that guarantee dependencies are locked down to specific versions, making builds and deployments reproducible;
    • the aggregated knowledge (reinforcement learning from installed logs) helps the bots to lock the dependencies to the best libraries, instead of the latest.
    • They are in beta phase but welcoming feedback and suggestions from the community.

Extras

Brian:

  • Pragmatic Bookshelf 12 days of Christmas
    • Today, pytest book is part of the deal, nice timing, right?

Michael:

  • My talk at FlaskCon is out
  • Firefox releases RLBox
  • We’re all getting identity theft monitoring for 1 year for free :-/

Laís:

  • Python Ireland’s speaker’s coaching session is on Jan 22nd
  • Learning git the visual way - cool for beginners, thorough explanations
  • Good read for Java devs who want to start with Python (by Real Python)

Joke:

  • Janga
  • Python (hellish) virtual envs
view more

More Episodes

#439 That Astral Episode
2025-07-07
#438 Motivation time
2025-06-30
#437 Python Language Summit 2025 Highlights
2025-06-23
#436 Slow tests go last
2025-06-16
#435 Stop with .folders in my ~/
2025-06-09
#434 Most of OpenAI’s tech stack runs on Python
2025-06-02
#433 Dev in the Arena
2025-05-26
#432 How To Fix Your Computer
2025-05-19
#431 Nerd Gas
2025-05-05
#430 Or you go to jail
2025-04-28
#429 Nitpicking Python
2025-04-21
#428 How old is your Python?
2025-04-14
#427 Rise of the Python Lord
2025-04-07
#426 Committing to Formatted Markdown
2025-03-31
#425 If You Were a Klingon Programmer
2025-03-24
#424 We Will Test in Production
2025-03-17
#423 Traveling the Python Universe
2025-03-10
#422 You need 4 spaces
2025-03-03
#421 22 years old
2025-02-24
#420 90% Done in 50% of the Available Time
2025-02-17
  • ←
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • →
012345678910111213141516171819

Get this podcast on your
phone, FREE

Download Podbean app on App Store Download Podbean app on Google Play

Create your
podcast in
minutes

  • Full-featured podcast site
  • Unlimited storage and bandwidth
  • Comprehensive podcast stats
  • Distribute to Apple Podcasts, Spotify, and more
  • Make money with your podcast
Get started

It is Free

  • Podcast Services

    • Podcast Features
    • Pricing
    • Enterprise Solution
    • Private Podcast
    • The Podcast App
    • Live Stream
    • Audio Recorder
    • Remote Recording
    • Podbean AI
  •  
    • Create a Podcast
    • Video Podcast
    • Start Podcasting
    • Start Radio Talk Show
    • Education Podcast
    • Church Podcast
    • Nonprofit Podcast
    • Get Sermons Online
    • Free Audiobooks
  • MONETIZATION & MORE

    • Podcast Advertising
    • Dynamic Ads Insertion
    • Apple Podcasts Subscriptions
    • Switch to Podbean
    • YouTube to Podcast
    • Blog to Podcast
    • Submit Your Podcast
    • Podbean Plugins
    • Developers
  • KNOWLEDGE BASE

    • How to Start a Podcast
    • How to Start a Live Podcast
    • How to Monetize a Podcast
    • How to Promote Your Podcast
    • Mobile Podcast Recording Guide
    • How to Use Group Recording
    • Podcast Advertising 101
  • Support

    • Support Center
    • What’s New
    • Free Webinars
    • Podcast Events
    • Podbean Academy
    • Podbean Amplified Podcast
    • Badges
    • Resources
  • Podbean

    • About Us
    • Podbean Blog
    • Careers
    • Press and Media
    • Green Initiative
    • Affiliate Program
    • Contact Us
  • Privacy Policy
  • Cookie Policy
  • Terms of Use
  • Consent Preferences
  • Copyright © 2015-2025 Podbean.com