What's new in Python 3.13?

preview_player
Показать описание
The Python 3.13 beta has been released, meaning the feature freeze is now active. This is the perfect time to take a minute to see what's new and upcoming in the release, so let's dive into it!

Below is a list of chapters cited against any relevant references which you'll find further down. It's absolutely worth doing further reading using these if you want to learn more!

Chapters:
0:00 - Intro
0:30 - JIT compilation [1-3]
1:29 - Adding iOS as a supported platform [4-5]
1:49 - Improved error messages [6-7]
2:11 - Marking deprecations using the type system [8]
2:30 - Deferred evaluation of annotations using descriptors [9-10]
3:17 - Narrowing types with TypeIs [11]
3:52 - Things no longer coming to 3.13 [12-13]
4:06 - Quickfire cool stuff! [14]
4:42 - Outro

References:



If you enjoy my content, consider supporting me on Patreon or becoming a member!

Follow me elsewhere for even more Carberra!

I get a lot of people asking, so here's my setup!



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto
Рекомендации по теме
Комментарии
Автор

Will version 3.14 run under the name Pi-thon?

ItsReelU
Автор

The JIT is what excited me the most, once it's fully implement, other language won't smirk at Python devs saying that Python is so slow compared to other scripting language like node

lowkeygaming
Автор

As someone who likes to split packages into a lot of files, the cyclical import update is amazing.

carlosmspk
Автор

Nice one for this! Loved the work on Improved error messages.

pythonwithjames
Автор

Ios being added BEFORE Android? Now that is funny to me lmao

kokop
Автор

2:31 this seems like perhaps the most important new thing on 3.13, I didnt fully understand the description but if it is what I think it is, this fixes the biggest downside to Python when compared to other "more mature" languages. I put that in quotes because the import system in python is extremely immature and the biggest issue it caused was not being able to use types anywhere we would like because of the need for imports. Hacks had to be used, like a import guard for only importing a type at "type checking" time. Which is a PITA do maintain. Hopefully this fixes that

tswdev
Автор

XDG base directory support is my favourite one.

cllve
Автор

The annotation improvements are very welcome, been avoiding upgrading the annotation support in odin because of the strings. The annotation parser is already fairly complex.

TimSavage-drummer
Автор

lmao, how can the jit provide such a small improvement? I recall numba being like orders of magnitude faster.

AsgerJon
Автор

Distributions of python 3.13 will come with an optional additional binary (python3.13t) where the GIL is disabled. It's a checkbox in the windows installer, but it's going to be up to package maintainers to figure out how to distribute on other platforms

WhiteDoppler
Автор

I didn't understand a thing! Am I that bad of a programmer ?

alikhatami
Автор

I want to know more about the new Incremental Garbage Collection

MrAlanCristhian
Автор

The only feature after security patches in upcoming python versions is backwards compatibility, which seems to be missing since... always...

Elefantoche
Автор

On android, it already compiles on termux.

rkdeshdeepak
Автор

Its wild how much work is going into type annotation. its becoming its own weird meta language. which probably isn't good

RobertFletcherOBE
Автор

Wait, we can't migrate to 3.12 because of dependencies and now you present 3.13?

MasterSergius
Автор

The TypeIs/TypeGuard stuff feels like it should be a part of pattern matching

jamesarthurkimbell
Автор

dont know whats removed? lol 3.14 coming

JarppaGuru
Автор

I wish python would stop using global variables in function definitions unless explicitly told to, like in C++. I didn’t know it did this until it caused a really annoying to fix error for me, and just seems unintuitive.

lbgstzockt
Автор

Ha Good luck ever running it properly now since the 24.04 LTS fckin broke pip.

seansingh