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

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 102

  • @senna_william
    @senna_william 2 года назад +178

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

    • @HypnosisBear
      @HypnosisBear 2 года назад +1

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

    • @bartuslongus
      @bartuslongus 2 года назад +7

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

    • @Nite_coder
      @Nite_coder 2 года назад +2

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

    • @rere439
      @rere439 2 года назад +1

      No bullshit Intro just straight to the point

  • @k98killer
    @k98killer 2 года назад +19

    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.

  • @AlexCouch65
    @AlexCouch65 2 года назад +11

    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!

  • @Articha
    @Articha 2 года назад +6

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

  • @aminramazanifar9743
    @aminramazanifar9743 2 года назад +14

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

  • @doomguy6296
    @doomguy6296 2 года назад +7

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

  • @benyaminyakobi3652
    @benyaminyakobi3652 2 года назад +38

    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 года назад +34

      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 года назад +19

      @@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 года назад +6

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

    • @szdsdf4619
      @szdsdf4619 2 года назад +9

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

    • @hardrod6989
      @hardrod6989 2 года назад +6

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

  • @vectoralphaSec
    @vectoralphaSec 2 года назад +11

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

    • @oican5404
      @oican5404 2 года назад +11

      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 года назад +5

      Also be able to manipulate DOM

    • @Chironexe
      @Chironexe 2 года назад +2

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

    • @dawidp749
      @dawidp749 2 года назад +1

      @@oican5404 there is pyscript already :p

    • @lougmirimohamed443
      @lougmirimohamed443 2 года назад +2

      our dreams will be True bro

  • @0xN1nja
    @0xN1nja 2 года назад +15

    omg that add_note method of exception class is amazing

    • @renancatan
      @renancatan 2 года назад +1

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

    • @AlexEliotOfficial
      @AlexEliotOfficial 2 года назад +4

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

  • @saitaro
    @saitaro 2 года назад +1

    Density of information is divine.

  • @eadweard.
    @eadweard. 2 года назад +10

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

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 2 года назад +2

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

    • @dualbladedtvrecords4383
      @dualbladedtvrecords4383 2 года назад +2

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

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 2 года назад +2

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

  • @init1508
    @init1508 2 года назад +20

    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 года назад +1

      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

  • @aliakbarmostafaei
    @aliakbarmostafaei 2 года назад +3

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

  • @PMU004
    @PMU004 2 года назад +3

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

  • @debyteO2
    @debyteO2 2 года назад +5

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

    • @patloeber
      @patloeber  2 года назад

      kinda :D :D

    • @MrMaxtng
      @MrMaxtng 2 года назад +2

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

  • @user-lv6qm3fj2z
    @user-lv6qm3fj2z 2 года назад +1

    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 = :

  • @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.

  • @GFC1337
    @GFC1337 2 года назад

    How is NotRequired different from Optional?

  • @Kinos141
    @Kinos141 Год назад

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

  • @jaysonbunnell8097
    @jaysonbunnell8097 2 года назад +2

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

  • @sushantrocks
    @sushantrocks 2 года назад

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

  • @kipcrossing
    @kipcrossing 2 года назад

    Awesome!

  • @johnlimusicofficial220
    @johnlimusicofficial220 2 года назад

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

  • @daneilgame123
    @daneilgame123 2 года назад +1

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

  • @enantiodromia
    @enantiodromia Год назад

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

  • @ko-Daegu
    @ko-Daegu 2 года назад +1

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

    • @igorthelight
      @igorthelight 2 года назад +1

      "Feature creep" happened :-)

  • @hasibryan
    @hasibryan 2 года назад +1

    what software you using to record keyboard shortcuts on stream?

  • @qondonyon
    @qondonyon 2 года назад +1

    FAST
    REAL
    (genuine)

  • @harrybellingham98
    @harrybellingham98 2 года назад +5

    lol im still on 3.8

    • @frankhuurman3955
      @frankhuurman3955 2 года назад +3

      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 года назад +1

      Current Debian Stable includes 3.9.

    • @jeffreymagedanz8130
      @jeffreymagedanz8130 2 года назад +1

      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.

  • @longlong10203
    @longlong10203 2 года назад

    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.

  • @rahulkmail
    @rahulkmail 2 года назад

    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 ?

  • @ВладиславКоролёв-ц9э

    Thank you bro

  • @suche_cz
    @suche_cz 2 года назад +3

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

  • @binyaminramati3010
    @binyaminramati3010 2 года назад

    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? :)

  • @42sol
    @42sol 2 года назад +4

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

  • @TheWitzig
    @TheWitzig 2 года назад

    Great video, this release is gonna be huge

  • @Super--Paper--Fox
    @Super--Paper--Fox 2 года назад

    python is fast bois

  • @boozflooz6255
    @boozflooz6255 2 года назад

    Thanks for the update

  • @mohammedk.h.f3016
    @mohammedk.h.f3016 2 года назад

    Thank you a lot

  • @mehdismaeili3743
    @mehdismaeili3743 2 года назад

    Excellent, thanks.

  • @dhruvkashyap16
    @dhruvkashyap16 2 года назад +2

    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 2 года назад +1

      "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 2 года назад

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

  • @cipherxen2
    @cipherxen2 2 года назад +2

    The channel name is somewhat an oxymoron

  • @larrykubin5987
    @larrykubin5987 2 года назад

    👍🐶

  • @SkyFly19853
    @SkyFly19853 2 года назад +1

    Any news with Cython ( C extension for Python ) ?

  • @Derian_De_Grey
    @Derian_De_Grey 2 года назад +1

    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 2 года назад

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

    • @Derian_De_Grey
      @Derian_De_Grey 2 года назад

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

    • @incremental_failure
      @incremental_failure 2 года назад

      @@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...

  • @brilliancetventertainment9416
    @brilliancetventertainment9416 2 года назад

    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?

  • @Hassibayub
    @Hassibayub 2 года назад +1

    What about speed? Did it get any better?

    • @deimuader
      @deimuader 2 года назад +2

      did you even watch the video?

    • @Hassibayub
      @Hassibayub 2 года назад

      @@deimuader i think i do

    • @igorthelight
      @igorthelight 2 года назад +3

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

  • @vaibhavmane4445
    @vaibhavmane4445 2 года назад

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

  • @gunahawk6893
    @gunahawk6893 2 года назад

    Performance increase in overall level?