Quick First Look at Python 3.11 Features (10-60% FASTER!)

Learn about the new features in Python 3.11!
Article: docs.python.org/3.11/whatsnew...
Download Beta: www.python.org/downloads/rele...
Get my Free NumPy Handbook:
www.python-engineer.com/numpy...
✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: sourcery.ai/?... *
⭐ Join Our Discord : / discord
📓 ML Notebooks available on Patreon:
/ patrickloeber
If you enjoyed this video, please subscribe to the channel:
▶️ : / @patloeber
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
🖥️ Website: www.python-engineer.com
🐦 Twitter - / patloeber
✉️ Newsletter - www.python-engineer.com/newsl...
📸 Instagram - / patloeber
🦾 Discord: / discord
▶️ Subscribe: / @patloeber
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
🅿 Patreon - / patrickloeber
#Python
----------------------------------------------------------------------------------------------------------
* This is an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

Пікірлер: 102

  • @senna_william
    @senna_william2 жыл бұрын

    This man doesn't waste a second of this video's time. Thanks!

  • @HypnosisBear

    @HypnosisBear

    2 жыл бұрын

    Yes! Even I noticed it..!!! That's something I love about his channel.

  • @bartuslongus

    @bartuslongus

    2 жыл бұрын

    The Python 3.11 speedup has already been implemented in this guy :P

  • @Nite_coder

    @Nite_coder

    2 жыл бұрын

    This is my first video I've seen of his definitely subbing

  • @rere439

    @rere439

    2 жыл бұрын

    No bullshit Intro just straight to the point

  • @k98killer
    @k98killer2 жыл бұрын

    That error handling was one of the most attractive things about Rust that I wanted to see implemented in Python. That and the speed increase. I also think it would be cool to have a version of Python that uses Rust's memory management conventions, but I don't have time to make it myself, so it's just a fanciful pipe dream.

  • @Articha
    @Articha2 жыл бұрын

    Holy-moly. Finally "self" typing. Thanks, PyTeam!

  • @doomguy6296
    @doomguy62962 жыл бұрын

    As a Rust programner, it feels Python is getting lots of Rust like features since 3.10

  • @aminramazanifar9743
    @aminramazanifar97432 жыл бұрын

    I hope your next video is python 3.11 speed test. Thanks

  • @PMU004
    @PMU0042 жыл бұрын

    Hi Patrick! What do You think about Julia language for ML in comparison to python?

  • @saitaro
    @saitaro Жыл бұрын

    Density of information is divine.

  • @42sol
    @42sol2 жыл бұрын

    thanks - python is getting better and better. great to have this good and compact overviews ❤❤❤

  • @AlexCouch65
    @AlexCouch65 Жыл бұрын

    Finally, the python devs are adding actually good new things. Usually it's a thing or two but now it seems like they're actually focused on evolving python. This is a big step forward for python. GG python devs!

  • @0xN1nja
    @0xN1nja2 жыл бұрын

    omg that add_note method of exception class is amazing

  • @renancatan

    @renancatan

    2 жыл бұрын

    whats the difference of putting it inside a simple print(f'notes 1 2 3.. {e}')

  • @AlexEliotOfficial

    @AlexEliotOfficial

    2 жыл бұрын

    @@renancatan Libraries can now make use of this to provide more contextual information on errors to the user.

  • @benyaminyakobi3652
    @benyaminyakobi36522 жыл бұрын

    Great content as always. Do you think that the speedup in 3.11 is a game changer for python? 10-60% sounds great but it's related to 3.10 and not to older versions of python.

  • @patloeber

    @patloeber

    2 жыл бұрын

    Maybe not a "game-changer", but still amazing! And over the next years there are even more speed optimizations to be expected!!

  • @benyaminyakobi3652

    @benyaminyakobi3652

    2 жыл бұрын

    @@patloeber Six months ago i've written a multi-processed script at work which took on my computer at work 38-40 minutes to run. It'll be interesting to test it with 3.11 to see the run time result hehehe :)

  • @brulsmurf

    @brulsmurf

    2 жыл бұрын

    nah, a lot of languages run many times faster than python. but its nice

  • @szdsdf4619

    @szdsdf4619

    2 жыл бұрын

    ​@@benyaminyakobi3652 let us know how much faster it will be on 3.11 version :) I'm very intrigued about this.

  • @hardrod6989

    @hardrod6989

    2 жыл бұрын

    @@benyaminyakobi3652 I'm very interested to know about the results. Please update when you do that. Thanks in advance

  • @boozflooz6255
    @boozflooz62552 жыл бұрын

    Thanks for the update

  • @jaysonbunnell8097
    @jaysonbunnell80972 жыл бұрын

    awesome! excited for the toml parser, much better to have a standardized one.

  • @hasibryan
    @hasibryan2 жыл бұрын

    what software you using to record keyboard shortcuts on stream?

  • @TheWitzig
    @TheWitzig2 жыл бұрын

    Great video, this release is gonna be huge

  • @aliakbarmostafaei
    @aliakbarmostafaei2 жыл бұрын

    I expected a benchmark since the prominent feature was the speedup which was also mentioned in the title!

  • @mehdismaeili3743
    @mehdismaeili37432 жыл бұрын

    Excellent, thanks.

  • @rahulkmail
    @rahulkmail Жыл бұрын

    Excellent information. It will help us a lot. Thanks for sharing the same. Can you share some more information's through examples on new changes in Python 3.11 regarding classes and built-in methods ?

  • @vectoralphaAI
    @vectoralphaAI2 жыл бұрын

    I wonder how Python 4 will be like. The only thing I want is higher performance/speed.

  • @oican5404

    @oican5404

    2 жыл бұрын

    Python 4 would be able to start up your PC in the middle of the night because it finds a better way to train your data.

  • @oican5404

    @oican5404

    2 жыл бұрын

    Also be able to manipulate DOM

  • @Chironexe

    @Chironexe

    2 жыл бұрын

    @@oican5404 Well that sucks. I liked having my computer open immediately not 5 days later.

  • @dawidp749

    @dawidp749

    2 жыл бұрын

    @@oican5404 there is pyscript already :p

  • @lougmirimohamed443

    @lougmirimohamed443

    2 жыл бұрын

    our dreams will be True bro

  • @kipcrossing
    @kipcrossing2 жыл бұрын

    Awesome!

  • @init1508
    @init15082 жыл бұрын

    I hope they remove the global interpreter lock as soon as possible, or at least make it an optional choice by adding a flag, cuz python would be cooler without GIL. I barely use multi threading in my scripts, but I still want it to be cooler

  • @dawidp749

    @dawidp749

    2 жыл бұрын

    Then use another interpeter. GIL won’t be removed until python4(if python4 won’t be compatable with python3). Removing GIL will cause slowing down single threaded code. Imagine what would corporations do if something like this happen

  • @eadweard.
    @eadweard.2 жыл бұрын

    Anyone know if they plan to merge the GIL-free changes in any particular version?

  • @lawrencedoliveiro9104

    @lawrencedoliveiro9104

    2 жыл бұрын

    I’m glad they found a way to remove the GIL without abandoning reference counts.

  • @dualbladedtvrecords4383

    @dualbladedtvrecords4383

    2 жыл бұрын

    @@lawrencedoliveiro9104 Seriously? Damn thats awesome. Where can I read more on that?

  • @lawrencedoliveiro9104

    @lawrencedoliveiro9104

    2 жыл бұрын

    @@dualbladedtvrecords4383 It’s the “nogil” project.

  • @kcvinu
    @kcvinu Жыл бұрын

    This is the version I started a serious project with. I tasted a little bit Python long ago with the version 2.7. But for some specific reasons, I quit. And years after, one day, I saw "ctypes" and voilà !! I was like, "this is what I wanted". It's really fun to do some win32 GDI drawing with python. My project is progressing slowly but steadily. Happy coding everybody.

  • @sushantrocks
    @sushantrocks Жыл бұрын

    I wonder when sortedcontainers will get incl in stdlib. The heapq module is a pain!

  • @mohammedk.h.f3016
    @mohammedk.h.f30162 жыл бұрын

    Thank you a lot

  • @user-ku5oh4pj2m
    @user-ku5oh4pj2m2 жыл бұрын

    Thank you bro

  • @longlong10203
    @longlong10203 Жыл бұрын

    The best thing I like about Python 3.11 is probably the match-case statement. They are much useful than just writing a lot of if-elses.

  • @binyaminramati3010
    @binyaminramati30102 жыл бұрын

    Hi Patrick, is the message in the discord about the tutorial hub still relevant?

  • @patloeber

    @patloeber

    2 жыл бұрын

    I'm not exactly sure what you mean, can you just ask again in Discord and I make sure to reply? :)

  • @GFC1337
    @GFC1337 Жыл бұрын

    How is NotRequired different from Optional?

  • @debyteO2
    @debyteO22 жыл бұрын

    thats just epic it's becoming kinda like rust which is good

  • @patloeber

    @patloeber

    2 жыл бұрын

    kinda :D :D

  • @MrMaxtng

    @MrMaxtng

    2 жыл бұрын

    Lets not get too excited. Rust is on par with C which is in average 50 times faster than Python...

  • @johnlimusicofficial220
    @johnlimusicofficial220 Жыл бұрын

    Wow, I'm pretty interested in the way they impoved the speed, realy how the hell are they doing this? :DD

  • @vladrootgmailcom
    @vladrootgmailcom Жыл бұрын

    Python developers work on pinpointing the exact place of error. Python beginners still: "Please help me! What's wrong with my code?" Their code: x = :

  • @brilliancetventertainment9416
    @brilliancetventertainment94162 жыл бұрын

    I am having ssl module issue after installing Python3.10 on linux then doing a help("modules")....where can I find the ssl module path and how to install it?

  • @SkyFly19853
    @SkyFly198532 жыл бұрын

    Any news with Cython ( C extension for Python ) ?

  • @daneilgame123
    @daneilgame1232 жыл бұрын

    No way they updated that snake thing and it can now move faster

  • @Hassibayub
    @Hassibayub2 жыл бұрын

    What about speed? Did it get any better?

  • @deimuader

    @deimuader

    2 жыл бұрын

    did you even watch the video?

  • @Hassibayub

    @Hassibayub

    2 жыл бұрын

    @@deimuader i think i do

  • @igorthelight

    @igorthelight

    Жыл бұрын

    @@Hassibayub Then you already know the answer ;-) If not - watch video again! And don't eat or talk - just watch ;-)

  • @ko-Daegu
    @ko-Daegu2 жыл бұрын

    The sub exception looks overly complicated for no reason What happened to simplicity above all?

  • @igorthelight

    @igorthelight

    Жыл бұрын

    "Feature creep" happened :-)

  • @suche_cz
    @suche_cz2 жыл бұрын

    Hope the Python still be Python, and clean, simple and elegant

  • @dhruvkashyap16
    @dhruvkashyap162 жыл бұрын

    Is 3.7 okay in 2022 or its high time to upgrade

  • @jayrizzo1454

    @jayrizzo1454

    2 жыл бұрын

    I just started using 3.10.5 today. Lol

  • @igorthelight

    @igorthelight

    Жыл бұрын

    "Is 3.7 okay in 2022 or its high time to upgrade" - depends on how easy for you to update ;-) In most cases - it's pretty easy and fast!

  • @incremental_failure

    @incremental_failure

    Жыл бұрын

    Most stuff is 3.9 compatible already, I wouldn't go above that though.

  • @gunahawk6893
    @gunahawk68932 жыл бұрын

    Performance increase in overall level?

  • @vaibhavmane4445
    @vaibhavmane44452 жыл бұрын

    Python website won't open in my Pc. Is Python website down now.

  • @foxguysumthing
    @foxguysumthing2 жыл бұрын

    python is fast bois

  • @harrybellingham98
    @harrybellingham982 жыл бұрын

    lol im still on 3.8

  • @frankhuurman3955

    @frankhuurman3955

    2 жыл бұрын

    no shame in that for a stable production application :) but 3.11 might be a nice time to upgrade if your dependencies allow it! haha

  • @lawrencedoliveiro9104

    @lawrencedoliveiro9104

    2 жыл бұрын

    Current Debian Stable includes 3.9.

  • @jeffreymagedanz8130

    @jeffreymagedanz8130

    2 жыл бұрын

    I'm stuck with 2.7 at work.

  • @lawrencedoliveiro9104

    @lawrencedoliveiro9104

    2 жыл бұрын

    @@jeffreymagedanz8130 I hope you have some kind of support contract for that, if you are using such an obsolete version for mission-critical business functions.

  • @qondonyon
    @qondonyon2 жыл бұрын

    FAST REAL (genuine)

  • @larrykubin5987
    @larrykubin59872 жыл бұрын

    👍🐶

  • @Kinos141
    @Kinos141 Жыл бұрын

    Looks like Python is copying Rust in its error handling. Respect.

  • @enantiodromia
    @enantiodromia Жыл бұрын

    I am interested in the contents, but put off by the very strong accent.

  • @cipherxen2
    @cipherxen22 жыл бұрын

    The channel name is somewhat an oxymoron

  • @deimuader

    @deimuader

    2 жыл бұрын

    how so?

  • @incremental_failure

    @incremental_failure

    Жыл бұрын

    That was below the belt.

  • @Derian_De_Grey
    @Derian_De_Grey2 жыл бұрын

    Right! Python is too slow! This greatly limits the scope of its application! It is necessary to radically accelerate it! We need to develop interpreters and execution environments like Py-py!

  • @incremental_failure

    @incremental_failure

    Жыл бұрын

    Perhaps you're not using numpy/pandas for larger data.

  • @Derian_De_Grey

    @Derian_De_Grey

    Жыл бұрын

    @@incremental_failure this does not justify not optimizing the language, but rather its main interpreter.

  • @incremental_failure

    @incremental_failure

    Жыл бұрын

    @@Derian_De_Grey Unlikely to happen, especially when for larger data most are using numpy anyway. Don't get me wrong, it would be awesome but...