What's New in Python 3.11?

Ғылым және технология

Today we cover the most interesting and useful updates and changes of the new Python version 3.11.
Python 3.11 Documentation: docs.python.org/3/whatsnew/3....
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
Timestamps:
(0:00) Intro
(0:16) Faster Execution Speed
(2:10) Fine-Grained Error Messages
(4:30) Exception Notes
(6:16) TOML Parser
(8:44) Type Hinting
(14:33) String Enums
(16:11) Outro

Пікірлер: 19

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

    Speedup and especially the more explicit error messages are very nice improvements

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

    I was very excited for 3.11. The speed improvements alone would be very helpful given that much of what I do is video processing which sometimes runs into days vs. hours. (the Self type is rather cool too) The only issue I have so far with it is the library adoption rate. (Kudos to PyCharm for being on the stick and having a upgrade version to the IDE ready to go.) Python core is a powerful language, but most of the extreme functionality resides in 3rd party libraries. For now some will work ok while others may not even be installable. While the issue will largely resolve itself in time as more libraries upgrade, the release of a new core doesn't instantly translate into improved functionality for all previous code. This to some degree illustrates a problem common throughout the programming world, and not just Python. It's not uncommon for programmers to take the easy path and only upgrade when absolutely necessary, or worse yet, just let the code fall into the realm of permanently broken. How many Pythonistas out there are still using 3.7 or even older? (heck, how long was it just getting everyone out of 2.x because 'Libraries'?) It might be a bit before the full benefits of 3.11 propagate down through the rest of the Python kingdom. Always looking forward to your content. ❤

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

    Thanks for the summary. Very helpful.

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

    Very useful. Thanks.

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

    Hi brother, thank you for your useful contents.

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

    I really thank you for all the videos that you make, they are so great , I just want to tell we are appreciate it very much.

  • @gauravgupta4645
    @gauravgupta46458 ай бұрын

    In your Toml file extension example, the players are not added as list.

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

    Thank you.

  • @codingworld-programmerslif430
    @codingworld-programmerslif430 Жыл бұрын

    already explored it.

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

    Hello Bro thank u.

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

    typing module is like the UN of imports. Has a lot of rules but no way to enforce them

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

    1:33 - compered to 3.10

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

    SOLVED I can't import pytube in python , I don't know it;s because I am using python 3.11 or not , even though i install it after python 3.11. I read some advice but I can't solve the problem. Actually I Find the solution to my problem. after the python 3.11 , almost all of your libraries won't work unless you change your interpreter to python 3.11

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

    You work ethic is killing me, I can't follow up wtih all your new films. Please keep going.

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

    how do you keep up with all those details? haha

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

    Have they fixed the python addition of decimals error yet? As many older programming languages python still gives errors for simple additions. I can accept that COBOL can't handle the rounding of decimals BUT python as a modern language should be fixed. Try this in python: x = 0.1 + 0.1 + 0.1 and print( x ) gives you 0.3000000004 - yayy!! Thats a bad error. BTW: I know this is related to floating point aritmetic and hardware BUT it really should be fixed by translating the addition to Decimal( 0.1 ) + Decimal( 0.1 ) + Decimal( 0.1 ) in the "background". And YES I know this means python will become even slower than it already is. But I'll trade speed for correctness every time.

  • @atypicalambience3487

    @atypicalambience3487

    Жыл бұрын

    Your preference is not more correct. If the interpreter encounters a value that that can only be accurately represented in base two, then defaulting to decimal operations will be less accurate. If you want perfect accuracy in base 10 by default you are using the wrong data type. You might trade speed for correctness, but your proposed change does not make the addition more correct in a general sense. You would destroy alot of legacy code with that change even beyond the speed decrease.

  • @oliverli9630
    @oliverli963010 ай бұрын

    cooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool

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

    😭 promosm

Келесі