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

  Рет қаралды 80,682

Patrick Loeber

Patrick Loeber

Күн бұрын

Пікірлер: 102
@senna_william
@senna_william 2 жыл бұрын
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
@k98killer 2 жыл бұрын
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.
@doomguy6296
@doomguy6296 2 жыл бұрын
As a Rust programner, it feels Python is getting lots of Rust like features since 3.10
@saitaro
@saitaro 2 жыл бұрын
Density of information is divine.
@Articha
@Articha 2 жыл бұрын
Holy-moly. Finally "self" typing. Thanks, PyTeam!
@benyaminyakobi3652
@benyaminyakobi3652 2 жыл бұрын
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
@0xN1nja
@0xN1nja 2 жыл бұрын
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.
@aminramazanifar9743
@aminramazanifar9743 2 жыл бұрын
I hope your next video is python 3.11 speed test. Thanks
@AlexCouch65
@AlexCouch65 2 жыл бұрын
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!
@vectoralphaSec
@vectoralphaSec 2 жыл бұрын
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
@aliakbarmostafaei
@aliakbarmostafaei 2 жыл бұрын
I expected a benchmark since the prominent feature was the speedup which was also mentioned in the title!
@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.
@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.
@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.
@init1508
@init1508 2 жыл бұрын
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
@debyteO2
@debyteO2 2 жыл бұрын
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...
@PMU004
@PMU004 2 жыл бұрын
Hi Patrick! What do You think about Julia language for ML in comparison to python?
@sushantrocks
@sushantrocks 2 жыл бұрын
I wonder when sortedcontainers will get incl in stdlib. The heapq module is a pain!
@jaysonbunnell8097
@jaysonbunnell8097 2 жыл бұрын
awesome! excited for the toml parser, much better to have a standardized one.
@TheWitzig
@TheWitzig 2 жыл бұрын
Great video, this release is gonna be huge
@hasibryan
@hasibryan 2 жыл бұрын
what software you using to record keyboard shortcuts on stream?
@user-lv6qm3fj2z
@user-lv6qm3fj2z 2 жыл бұрын
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 = :
@42sol
@42sol 2 жыл бұрын
thanks - python is getting better and better. great to have this good and compact overviews ❤❤❤
@kipcrossing
@kipcrossing 2 жыл бұрын
Awesome!
@GFC1337
@GFC1337 2 жыл бұрын
How is NotRequired different from Optional?
@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 ?
@daneilgame123
@daneilgame123 2 жыл бұрын
No way they updated that snake thing and it can now move faster
@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? :)
@boozflooz6255
@boozflooz6255 2 жыл бұрын
Thanks for the update
@johnlimusicofficial220
@johnlimusicofficial220 2 жыл бұрын
Wow, I'm pretty interested in the way they impoved the speed, realy how the hell are they doing this? :DD
@suche_cz
@suche_cz 2 жыл бұрын
Hope the Python still be Python, and clean, simple and elegant
@ko-Daegu
@ko-Daegu 2 жыл бұрын
The sub exception looks overly complicated for no reason What happened to simplicity above all?
@igorthelight
@igorthelight 2 жыл бұрын
"Feature creep" happened :-)
@harrybellingham98
@harrybellingham98 2 жыл бұрын
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.
@Hassibayub
@Hassibayub 2 жыл бұрын
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 2 жыл бұрын
@@Hassibayub Then you already know the answer ;-) If not - watch video again! And don't eat or talk - just watch ;-)
@mehdismaeili3743
@mehdismaeili3743 2 жыл бұрын
Excellent, thanks.
@Super--Paper--Fox
@Super--Paper--Fox 2 жыл бұрын
python is fast bois
@dhruvkashyap16
@dhruvkashyap16 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 жыл бұрын
"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.
@SkyFly19853
@SkyFly19853 2 жыл бұрын
Any news with Cython ( C extension for Python ) ?
@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?
@ВладиславКоролёв-ц9э
@ВладиславКоролёв-ц9э 2 жыл бұрын
Thank you bro
@qondonyon
@qondonyon 2 жыл бұрын
FAST REAL (genuine)
@mohammedk.h.f3016
@mohammedk.h.f3016 2 жыл бұрын
Thank you a lot
@Kinos141
@Kinos141 2 жыл бұрын
Looks like Python is copying Rust in its error handling. Respect.
@vaibhavmane4445
@vaibhavmane4445 2 жыл бұрын
Python website won't open in my Pc. Is Python website down now.
@gunahawk6893
@gunahawk6893 2 жыл бұрын
Performance increase in overall level?
@larrykubin5987
@larrykubin5987 2 жыл бұрын
👍🐶
@enantiodromia
@enantiodromia Жыл бұрын
I am interested in the contents, but put off by the very strong accent.
@cipherxen2
@cipherxen2 2 жыл бұрын
The channel name is somewhat an oxymoron
@deimuader
@deimuader 2 жыл бұрын
how so?
@incremental_failure
@incremental_failure 2 жыл бұрын
That was below the belt.
@Derian_De_Grey
@Derian_De_Grey 2 жыл бұрын
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...
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
10 Python Basics You Should Know!
10:08
Patrick Loeber
Рет қаралды 79 М.
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 24 МЛН
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 27 МЛН
You Are Going To Like These New Features In Python 3.11
10:58
ArjanCodes
Рет қаралды 160 М.
HTTPX Tutorial - A next-generation HTTP client for Python
11:02
Patrick Loeber
Рет қаралды 105 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 415 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 310 М.
LangChain Crash Course - Build apps with language models
15:19
Patrick Loeber
Рет қаралды 128 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 816 М.
6 Tips to write BETTER For Loops in Python
9:19
Patrick Loeber
Рет қаралды 250 М.