It's time... for PYTHON 3.11!

  Рет қаралды 151,627

mCoding

mCoding

Күн бұрын

The next version of Python is out!
CONTEST CURRENTLY CLOSED! The winners have been contacted already.
OFFICIAL CONTEST RULES:
1. All entries must comply with the KZfaq community guidelines ( kzfaq.infocommunity_gu...) and KZfaq Terms of Service (kzfaq.info?gl=US&t.... Entries that violate KZfaq guidelines are automatically disqualified.
2. KZfaq is not a sponsor of the contest and viewers are required to release KZfaq from any liability related to the contest.
3. Privacy notice: no personal data will be collected for this contest.
4. In order to enter, you must (a) be one of my subscribers, AND (b) make a top-level comment to the video including #py311 somewhere in the comment.
5. The contest is free, there is no fee required to enter.
6. Winners will be chosen randomly 1 week after the date the video went live from all users who have entered and not been disqualified.
7. Each winner will be notified via a comment reply from me that details what prize was won (e.g. "Congratulations! You have won XYZ. Please email me."). I will ask the winner to contact me by email, and I will reply through email with a random token which must be posted as another reply to the winning comment from the winning account in order to verify account ownership and prevent fraud.
8. Each winner will have 72 hours to respond AND prove account ownership or their prize is automatically forfeited and another winner will be chosen.
9. A winner can only win 1 prize per contest.
10. The prize pool for this contest is: 2 licenses ("Free 1-Year Personal Subscription") to any of these JetBrains IDEs: AppCode, CLion, DataGrip, DataSpell, GoLand, IntelliJ IDEA Ultimate, PhpStorm, PyCharm, ReSharper, ReSharper C++, Rider, RubyMine, WebStorm, or dotUltimate. A prize consists of 1 license, which will be delivered in the form of a redeemable code that can be redeemed at www.jetbrains.com/store/redeem/ before Jan 07, 2023.
11. You may not enter the contest if doing so would be a violation of any relevant federal, state, and local laws, rules, and regulations, including U.S. sanctions.
― mCoding with James Murphy (mcoding.io)
Source code: github.com/mCodingLLC/VideosS...
Download Python: www.python.org/downloads/
What's new in Python 3.11: docs.python.org/3.11/whatsnew...
Faster CPython: docs.python.org/3.11/whatsnew...
Python 3.11 Release stream: kzfaq.infoPGZPSWZ...
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
/ mcoding
Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.)
www.paypal.com/donate/?hosted...
Want to donate crypto? Check out the rest of my supported donations on my website!
mcoding.io/donate
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, John Martin, Mutual Information
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: / discord
Github: github.com/mCodingLLC/
Reddit: / mcoding
Facebook: / james.mcoding
CHAPTERS
---------------------------------------------------
0:00 Intro
0:28 Faster CPython
1:40 Better error locations
2:19 Exception Groups
3:13 Exception Notes
3:47 Tomllib
4:15 Typing features
4:49 Variadic Generics
5:18 Dataclass transforms
6:06 Literal Strings
6:56 Asyncio Task Groups
7:50 Thanks

Пікірлер: 694
@NathanRichHotpot
@NathanRichHotpot Жыл бұрын
Virtually nothing I do will be affected by the speed increase; but the exception pinpointing is god tier.
@data.monoid8785
@data.monoid8785 Жыл бұрын
Was not expecting to find you here, Nathan! xD
@jimjimseem
@jimjimseem Жыл бұрын
Damn I guess I'll have to stick to python now
@Peshyy
@Peshyy Жыл бұрын
I'm so glad Python is getting more performant and receives even more QoL features lately. I'm not a Python dev, but I've been keeping an eye on it due to it being the standard for ML/AI nowadays. Thanks for yet another informative video, keep them coming! #py311 P.S. Waiting for the Gentoo announcement for migrating to 3.11 woot!
@dantezco
@dantezco Жыл бұрын
I feel like I might not be the only one that gets incredibly more excited about the improved error messages. I mean, I literally let out a loud cheer on my end. #py311
@adamantii
@adamantii Жыл бұрын
mCoding calls it a small/boring change but I very much disagree!
@anon_y_mousse
@anon_y_mousse Жыл бұрын
If only every language's compiler/interpreter would do the same. About 20-ish years ago, the Digital Mars C++ compiler could do this exact thing with error messages in C++. It's not still getting updates, so it can't handle a lot of the newer standard stuff, but if it could be done with C++ post-templates, then every compiler/interpreter should do it.
@anguilliasKR
@anguilliasKR Жыл бұрын
It makes such a big difference. Rust is already very good for this and it's such a big help
@tylerpetrov8094
@tylerpetrov8094 Жыл бұрын
I love that python is putting more effort into error messages and things that aren't as exciting, but super helpful to everyone #py311
@supermonkeyqwerty
@supermonkeyqwerty Жыл бұрын
I love the "Use a compiled language / faster python" joke! Also always super excited to try out new typing related stuff. #py311
@raphaelsinai8900
@raphaelsinai8900 Жыл бұрын
better error location is such a small change yet it is so significant! i can’t wait for #py311
@Gilthans
@Gilthans Жыл бұрын
Would love to hear more about variadic typing! One of the greatest difficulties with data science code is understanding the dimensions of tensors, and this looks like an interesting solution
@laurenlewis4189
@laurenlewis4189 Жыл бұрын
Interested to see how the speedup improves my terribly inefficient scripts. Also endless praise to Mr. Salgado for making errors more bearable; the improved exception handling also makes me excited to write buggier code just to admire the vastly improved debugging process. I've been toying with rust and as everyone said, the compiler errors are a thing of beauty compared to other languages I've tinkered with, hopefully we start to see some of the same love for Python's interpreter. #py311
@potzko2552
@potzko2552 Жыл бұрын
I am super happy to get some better error massages :) I wonder how much it would help with some of those long list comprehensions
@KHariram
@KHariram Жыл бұрын
I used to purposefully write such things over multiple lines for better error catching. Knowing where in a line an error occurs is such a boon.
@2raddude
@2raddude Жыл бұрын
So glad you mentioned asyncio TaskGroups!! I’ve been using Trio for it’s similar Nursery functionality for a long time, but it’s hard to beat the support of using a package in the standard library. #py311
@ChristianBrugger
@ChristianBrugger Жыл бұрын
Very excited about the last one, about task groups. Makes async code so much more readable and close to the mom-async counterpart.
@marcoroose9973
@marcoroose9973 Жыл бұрын
I absolutely love this new version and have immediately used it in production.
@mCoding
@mCoding Жыл бұрын
Very nice! Many companies are still stuck on 3.8!
@-mwolf
@-mwolf Жыл бұрын
I've been waiting for shape typing for ages. And better error messages is also amazing. And ofc speedups oh man I love this language
@yashinshekh802
@yashinshekh802 Жыл бұрын
subscribed recently and have been learning a lot of deep things about python recently
@jbramley
@jbramley Жыл бұрын
Looking forward to better error messages, faster python, and continued improvements to type annotations in #py311 !
@carewen3969
@carewen3969 Жыл бұрын
Thanks for the update. While my focus is Django I do appreciate what is coming with 3.11. I also appreciate how your high quality content offers great education. Props to the Python core team. Better error messages FTW #py311
@hemantsharma7433
@hemantsharma7433 Жыл бұрын
Great. Thanks for the update
@mr_idk185
@mr_idk185 Жыл бұрын
I'm very excited for the new version and the many improvements made. I am programming in python myself and really looking forward to this! I also really enjoy your content, so keep up the great work!#py311
@cullen36
@cullen36 Жыл бұрын
Always exciting to see continual improvements! #py311
@evyatarelalouf704
@evyatarelalouf704 Жыл бұрын
This channel is one of the best channels to learn coding.. the way Murphy explains codes under the hood is golden. thank you very much.
@unl0ck998
@unl0ck998 Жыл бұрын
Great summary, thanks!
@juliacoriolano9429
@juliacoriolano9429 Жыл бұрын
Thank you for this informative and educational video!
@quackat1110
@quackat1110 Жыл бұрын
Thank you man, great video
@saivamshis8052
@saivamshis8052 Жыл бұрын
BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!This is cool, well done!
@randomnickname00
@randomnickname00 Жыл бұрын
Nice, hyped by this version, 10 to 60% faster is really a huge improvement. The new error thing is also really amazing. Looks like an amazing release. #py311
@HomoSapiensMember
@HomoSapiensMember Жыл бұрын
really glad someone picked up on the new error reports features
@tcozz12
@tcozz12 Жыл бұрын
Very exciting to see performance improvements in CPython since a lot of packages I use don't support interpreters like PyPy. #py311
@Mertly
@Mertly Жыл бұрын
This is basically the speed and organization update. I love it
@paradox9551
@paradox9551 Жыл бұрын
It's always funny how Python becomes faster when you use stuff not written in python! Honestly, you have literally the best videos on this topic, thanks for doing this. #py311
@cyb3rphoenix
@cyb3rphoenix Жыл бұрын
great to see focus going on the right places especially on performance, also finally some better error messages xD
@aleksanderszymborski5801
@aleksanderszymborski5801 Жыл бұрын
When I was reading about 3.11 in official docs, i wasn't sure about exception groups use-cases, but you show one of them. Thanks man, i can understand it better now. #py311
@daninnmyt
@daninnmyt Жыл бұрын
Great update. Python already has a lot of features. It's great to see improvements in error descriptions and autocompletions (through type annotation improvements)! #py311
@khusham6216
@khusham6216 Жыл бұрын
Been waiting eagerly for the update
@ericcrowell9493
@ericcrowell9493 Жыл бұрын
Really looking forward to exploring the new features of #py311 ! I'm especially pleased about the speed improvements and improved error messages. I really appreciate your videos and look forward to then next! Thanks! Keep up the great work!
@aaronrbermudez7787
@aaronrbermudez7787 Жыл бұрын
I'm in still in the learning process so this info about the update of #py311 is good to know because i am trying to stay updated. Thanks.
@derrickwlh
@derrickwlh Жыл бұрын
Great to know that Python still comes up with ways to improve the language! The error message improvement will be such a timesaver… Excited for #py311!
@kristiansims
@kristiansims Жыл бұрын
Just tried it with a python heavy project and it’s running over 1.6x as fast as it did on 3.10, pretty great!
@miguelguthridge
@miguelguthridge Жыл бұрын
So keen for the type hint improvements!!!
@WillyJL
@WillyJL Жыл бұрын
asyncio taskgroups is just what i needed... literally yesterday i pondering whether to rewrite a good chunk of code to suppress failed steps in a process and give a message at the end, now its going to be soooo much easier
@PhinkTink
@PhinkTink Жыл бұрын
your joke around the exception notes in #py311 got me. all along the more detailed error messages really will help me and others, especially when helping newbs to solve their problems. AsyncIO task groups could also be a nice thing, will see how it turns out on a everyday basis
@cenekp3559
@cenekp3559 Жыл бұрын
Thanks for this video!
@nnirr1
@nnirr1 Жыл бұрын
my favorite addition is the access to the default getstate. though i'd love to have an access to the default setstate as well
@MEZHGANO
@MEZHGANO Жыл бұрын
Such a good style of narrating, only the topic stuff, i like it
@davidriveros5422
@davidriveros5422 Жыл бұрын
Thank you! This was a very in-depth update on 3.11. The new typing features allowing better auto-completes has to be my favorite change! #py311
@Jim-Works
@Jim-Works Жыл бұрын
Definitely a fan of task groups, better typing, and faster performance! I've been using python more and more lately, and the type hints are very helpful as someone new-ish to the language. #py311
@xenthor4680
@xenthor4680 Жыл бұрын
I respect what you said about SQL queries however I'm a data analyst and often have to deal with huge tables (50+) columns and with format strings you -can read/understand a lot more clearly what's going on (imagine 50+ columns and adding another one) -dont need to specify the parameters in order which is HUGE considering most of the stuff I'm working with comes in whatever form but lists in correct order -can easily generalize requests with string addition and functions (especially search queries where you dont need all SQL filters) -can easily convert from other data types I dont do stuff on the web, so that might be a niche opinion, but in my opinion string-ized requests are justified. (If there is a better option that does not require me to format my data into a sorted list let me know)
@alexsischin2107
@alexsischin2107 Жыл бұрын
Would love to hear more about every feature mentioned
@PyPylia
@PyPylia Жыл бұрын
I feel like the addition of the Self type should've been mentioned. As someone who uses mypyc and type annotates everything in larger projects, a Self type is very useful. #py311
@mjhearn
@mjhearn Жыл бұрын
#py311 Type hinting is wonderful, but I think I'm more excited about the error messages pointing to the specific part that caused the error than implementing Variadic Generics. Also the exception comments seem like a great addition! Thanks Mr. Salgo!
@max2451
@max2451 Жыл бұрын
i like the new additions to python, like the new detailed error messages, and the overall speed increase, looking forward to the official release #py311
@yolosaurusrex90
@yolosaurusrex90 Жыл бұрын
python is such an impressive and fun language. these improvements and features over the last half-dozen versions have been so exciting. #py311
@dexterantonio3070
@dexterantonio3070 Жыл бұрын
I’m looking forward to generic type hints. I’m currently using a python version and numpy version without any of this. The best I can do is np.ndarray and pd.DataFrame.
@honking
@honking Жыл бұрын
I've been extremely invested in your videos. They're so informative and straight to the point. Thank you for that #py311
@nocturnomedieval
@nocturnomedieval Жыл бұрын
Would love to hear what are your thoughts on BDFL decisions and about Pyston and alike projects. Maybe a comparison video. #py311
@hunterwilhelm
@hunterwilhelm Жыл бұрын
Love that typing features similar to typescript’s are making their way into python! 🎉🎉🎉 #py311
@vhaangol4785
@vhaangol4785 Жыл бұрын
These are honestly exciting updates!
@amithm3
@amithm3 Жыл бұрын
there has been so many times where i wanted the highlighted error messages, finally #py311 it's no longer required to separate a single statement into multiple lines to check the error :)
@supleed2
@supleed2 Жыл бұрын
I thought I'd be most excited about the performance improvements but after trying out F# and Typescript, I'm definitely ready for better type animations and editor hints #py311
@python-b5
@python-b5 Жыл бұрын
It's great that Python is getting performance improvements. Python is really convenient to use for things but the (lack of) speed is always a problem, so this really helps! #py311
@AFMTAG
@AFMTAG Жыл бұрын
This was a neat overview! Due to the increase in speed, I might now finally upgrade from 3.9 to #py311
@JordanKarim
@JordanKarim Жыл бұрын
Neat! The error messages might be very helpful as I learn more, but probably just as soul-crushing #py311
@friedbutter1014
@friedbutter1014 Жыл бұрын
Being able to see exactly where exceptions happen seems like a massive improvement. I've spent many minutes staring at exception output not knowing where in the line is actually causing the exception. #py311
@thekeyfox
@thekeyfox Жыл бұрын
Love some of these new changes coming to Python! Thanks for keeping us updated! #py311
@amortalbeing
@amortalbeing Жыл бұрын
I guess I should now migrate from the good old 3.7 to 3.11 now. this looks promising . Good job everyone. Thanks to all of the good people working on this magnificent piece of grandiose artisanship
@mrwensveen
@mrwensveen Жыл бұрын
Finally a Python version I can use in workgroups!
@robertbrummayer4908
@robertbrummayer4908 Жыл бұрын
Great video as usual
@v00017
@v00017 Жыл бұрын
Always excited for a new Python release. Thanks for this overview! #py311
@skeilnet
@skeilnet Жыл бұрын
Love the async task group as context manger 😍
@shervin_emperor
@shervin_emperor Жыл бұрын
Great video! It would be interesting to see how they've achieved the speedup. #py311
@redsan16-78
@redsan16-78 Жыл бұрын
Awesome video! Don’t know if I’ll use anything new except for the new error messages, but hey. Improvements! #py311
@biralouders8531
@biralouders8531 Жыл бұрын
Nice to see someone updating content with new python versions and features #py311
@Groctel
@Groctel Жыл бұрын
I volunteered at PyConES and got the chance to work at Pablo's core talk about 3.11's optimisations. I loved every second of it and it sure wasn't presented as boring stuff :D
@glorytoarstotzka330
@glorytoarstotzka330 Жыл бұрын
honestly the error messages where it shows you exactly where the problem is, not just the line, that sounds just amazing #py311
@eyalfischel716
@eyalfischel716 Жыл бұрын
After the read about the new logging system on python 3.11 I wanted to cry. Its going to save a lot of pain on future projects.
@makadi86
@makadi86 Жыл бұрын
thank you for the latest update on #py311
@veggiet2009
@veggiet2009 Жыл бұрын
I'm upgrading just for that Error message feature!
@johnexim5187
@johnexim5187 Жыл бұрын
This overview is nice. But dedicated video discussions to some of the more helpful new features would be appreciated. :) #py311
@TonyHammitt
@TonyHammitt Жыл бұрын
async with is going to really be handy, should clean up a lot of code. Thanks for the updates 🙂
@purpl3r0se31
@purpl3r0se31 Жыл бұрын
Thank you for making these videos, each time I watch a video by you I learn something new! #py311
@maheshcharyindrakanti8544
@maheshcharyindrakanti8544 Жыл бұрын
Ty I got my first divine because of you
@Shikaku2
@Shikaku2 Жыл бұрын
Can't wait to try Python 3.11 for WorkGroups
@sevils
@sevils Жыл бұрын
Looking good! Thanks for the clear update video. #py311
@renatopiacente5329
@renatopiacente5329 Жыл бұрын
I love that we can now add notes to exceptions , have literal strings to better manage Databases, for example. #py311
@marcotroster8247
@marcotroster8247 Жыл бұрын
Can you go into detail why Python became faster without requiring type hints? 😉 And what do you think about a hard-typed mode with a sufficient JIT optimizer built into Python 3.12? 🤔 Btw, the array hard-typing efforts are really nice. I can't wait to see them 😄
@nothingnewatall
@nothingnewatall Жыл бұрын
Great Video, thanks for the overview. Really excited to see getting my favourite programming language evolve to be 5x faster🤩. #py311 Would love a python typing tutorial from you.
@bernimas1
@bernimas1 Жыл бұрын
This is so dope. In the context that I am using python it is always stigmatized as "too slow for this type of work" so any speed improvement (specially one as big as this one) is more than great news! I can't wait to be ported over to 3D applications 😁#py311
@user-un1lc7mb9s
@user-un1lc7mb9s Жыл бұрын
It is very good, that python developers continue to make our favorite python more and more smart. I think that somebody in future will make "Typed Python" so we will get best speed!!! #py311
@angryoldman9798
@angryoldman9798 Жыл бұрын
Only features that you listed that will actually impact my code writing are speed, error messages and maybe Type hunting Looking forward to the next updates though! #py311
@lucasjensen7011
@lucasjensen7011 Жыл бұрын
Pretty excited for Exception notes and groups! I just wish we could use python3.11 in deployed applications, but it'll be there eventually #py311
@bendgk123
@bendgk123 Жыл бұрын
Love your videos, really helps to stay up to date with new python features! #py311
@libjack
@libjack Жыл бұрын
Thanks for the video.. Liking the typing features in #py311
@alwayslistening3340
@alwayslistening3340 Жыл бұрын
Looking forward to it!
Жыл бұрын
Speed, better errors, exceptions, more typing features looks very nice. Personally I am also so glad for build-in tomllib, no need to add dependences or to parse config with stuff like configparser, where you need to convert even integers from strings. Feeling positive 👍#py311
@leovin00
@leovin00 Жыл бұрын
Error messages highlighting which part of the line they came from are a game changer! I can’t believe this hasn’t been implemented in every language years ago. Im looking at you NullPointerException in a 100+ character line
@maadneet
@maadneet Жыл бұрын
Error location will help a lot right now, and the typing features look like they will enable some good QoL changes too. #py311
@modest_supreme
@modest_supreme Жыл бұрын
Updating ASAP thanks for the great information! #py311
@thisoldproperty
@thisoldproperty Жыл бұрын
Brilliant.
@Haama10
@Haama10 Жыл бұрын
Definitely looking forward to better error messages and faster execution in #py311
@HypronVideos
@HypronVideos Жыл бұрын
Really excited by these new changes, thanks for the highlights! #py311
@Kai_Ning
@Kai_Ning Жыл бұрын
The better error messages is the only thing that really interest me here in #py311 . I'm a noob learning and being told exactly and explicitly where i messed up is simply amazing. Making python faster also seems neat. When you're starting to learn programing, wondering if learning python is really the best language because some are faster kind of is a big deal. "Should i really try to use pygame to make simple game or directly switch to c++ and unity once i get things going after learning some python" is a legitimate question newbs ask themselves.
Python 3.12 is HERE!
12:37
mCoding
Рет қаралды 156 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 295 М.
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 81 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 11 МЛН
Erdős-Woods Numbers - Numberphile
14:12
Numberphile
Рет қаралды 117 М.
8 Design Patterns | Prime Reacts
22:10
ThePrimeTime
Рет қаралды 389 М.
Physicists Claim They Can Send Particles Into the Past
7:21
Sabine Hossenfelder
Рет қаралды 213 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 369 М.
Metaclasses in Python
15:45
mCoding
Рет қаралды 150 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 246 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 757 М.
Async for loops in Python
16:36
mCoding
Рет қаралды 58 М.
Python's most DISLIKED __dunder__ (and what to use instead)
9:59
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 6 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 41 МЛН