Python 3.10's Quality of Life improvements

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

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

  • @sadhlife
    @sadhlife 3 года назад +207

    Big shoutout to Pablo, absolutely awesome work.

    • @mCoding
      @mCoding  3 года назад +18

      Couldn't agree more!

  • @runie
    @runie 3 года назад +63

    Love the concise presentation format of these videos.

    • @mCoding
      @mCoding  3 года назад +4

      Thank you!

  • @Kram1032
    @Kram1032 3 года назад +27

    the improved error messages are huge I feel. Honestly they may also help pros.
    Like, pros will know "oh it's telling me this but really it's meaning that", but it should be less of a mental burden now when it's more like "oh it's telling me this and that's exactly what was wrong!"
    Really glad that parsing and typing alike are getting stronger

  • @Jaime.02
    @Jaime.02 3 года назад +35

    Pablo is a spanish core developer, check his talks in youtube, he is amazing

  • @reddragon3132
    @reddragon3132 3 года назад +49

    Those better error messages are going to be a God send to anyone trying teach/learn python. No longer will people be confused because forgetting a bracket raises an error on the following line

    • @mCoding
      @mCoding  3 года назад +13

      I always wondered why most languages can't tell you about a missing brace or similar, glad Python put in the effort!

    • @guiorgy
      @guiorgy 3 года назад

      @@mCoding actually, in more C based languages, the error line is more accurate and the messages are more descriptive, and that's to be expected.
      One of the reasons I still prefere them is that. Every time I tried Python I'd get Syntax Error and then go through countless tabs trying to find why, only to realise I missed some opening or closing symbol.
      Even experienced people make mistakes, so having more descriptive messages will be a trully welcome addition!

    • @dhkatz_
      @dhkatz_ 3 года назад +3

      Flashbacks to C++ template error messages. Hopefully will be a lot better in C++20!

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

    3.10 is by far my favorite release since they added f-strings. Really, really great quality of life improvement with the new error messages. I'm not really a beginner anymore but they really have helped me identify small mistakes much faster.

  • @AssemblyWizard
    @AssemblyWizard 3 года назад +8

    1:41 this was always a feature, if you read what it says it's about something different - highlighting a range instead of a single character

  • @willjohnson4579
    @willjohnson4579 3 года назад +6

    1:51 Wouldn't fixing the SyntaxError here then raise a TypeError? Trying to unpack int into x,y

  • @stef9019
    @stef9019 3 года назад +18

    Great vid as always. Pablo sounds like a great guy.

  • @motbus3
    @motbus3 3 года назад +3

    what makes debugging to get wrong line number is that the pyc is used instead of py file
    some content are reorganized and comments stripped. not sure, but I guess docstrings may be sometimes removed to ensure pyc is fits into some unit of memory python uses. or may be not. who knows

  • @thejedijohn
    @thejedijohn 3 года назад +5

    This continues to be the best python channel on the internet.

    • @mCoding
      @mCoding  3 года назад +1

      Many thanks! Tell your friends!

  • @ujjawalsinha8968
    @ujjawalsinha8968 3 года назад +7

    It's getting more and more easier .. awesome 😎

    • @mCoding
      @mCoding  3 года назад +1

      Thanks ✌️

  • @mohammadkhalifeh6336
    @mohammadkhalifeh6336 3 года назад +19

    Pablo is a great person indeed

    • @mCoding
      @mCoding  3 года назад

      Cheers to Pablo!

  • @austingarcia6060
    @austingarcia6060 3 года назад +3

    I love the better error messages.

  • @swimmingshi
    @swimmingshi 3 года назад +1

    To the hero who read the documentations!

  • @AssemblyWizard
    @AssemblyWizard 3 года назад +8

    My favorite is zip's strict 🙌

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

      No more accidentally zipping against something empty!

  • @aqworldsmaster88
    @aqworldsmaster88 3 года назад +4

    thank you mr james

    • @mCoding
      @mCoding  3 года назад

      And thank you too!

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

    Proper error messaging coming ... Can't believe, I thought sometimes it's easier to debug line by line python program to identify the issue than to get exact location and reasons from Python's error messages.

  • @justinfuruness7954
    @justinfuruness7954 3 года назад

    Love the high level vids

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

    In my opinion, the greatest update in 3.10 has to be match statements. Other than that, I love the improved typing, and that types now support the '|' operator to form unions.

  •  3 года назад +4

    But I liked the "Syntax Error" where you have to figure out what the hell happened.

    • @mCoding
      @mCoding  3 года назад +7

      That's how you can tell you're a true veteran

  • @eyesburning
    @eyesburning 3 года назад +1

    Very cool! :) Btw, what mic are you using now?

    • @mCoding
      @mCoding  3 года назад +4

      I'm using the AT2020 XLR

    • @eyesburning
      @eyesburning 3 года назад

      @@mCoding Thanks!!

  • @honchokomodo
    @honchokomodo 3 года назад

    every time i forgot to close a brace, i just assume that the error was near lol

  • @denizberkinmis
    @denizberkinmis 3 года назад

    Thanks.

  • @arthuralexandersson
    @arthuralexandersson 3 года назад +1

    Niiiice

  • @incription
    @incription 3 года назад +4

    I thought they were going to name this one 4.0

    • @mCoding
      @mCoding  3 года назад +3

      I'll make a video on this probably...

    • @memespdf
      @memespdf 3 года назад

      @@mCoding I don't think a whole video is necessary to explain the python versioning, you could probably fit that all in a 'short'

  • @drivinmecoco1
    @drivinmecoco1 3 года назад +4

    FIRST: like your vides

    • @drivinmecoco1
      @drivinmecoco1 3 года назад +1

      ...y is it still writen "0 Comments" :0 Am i deaaaaaaaad.

    • @mCoding
      @mCoding  3 года назад +4

      *x-files sounds*

  • @eldattackkrossa9886
    @eldattackkrossa9886 3 года назад

    thanks pablo o7

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

    Help me

  • @IndellableHatesHandles
    @IndellableHatesHandles 3 года назад

    My current knowledge is out of date after only 3 to 4 years. I think it might be time to re-learn the language.

  • @jameshunt1822
    @jameshunt1822 3 года назад

    I couldn't even upgrade to 3.9 without bugs and people are talking about 3.10 😶

    • @mCoding
      @mCoding  3 года назад

      Production code is probably still stuck on 3.7 :)

    • @luziferius3687
      @luziferius3687 3 года назад

      @@mCoding More or less 2.7 ;)

  • @vitoanania6042
    @vitoanania6042 3 года назад

    up

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

    HELP

  • @sertacince6571
    @sertacince6571 3 года назад +1

    Is there a specific reason for waiting between pauses and not cutting the parts that you are breathing? Sometimes those parts can be annoying. If those parts are cut, I think it will be both a smooth video and more pleasant. Just a suggestion I hope you don't get it wrong

    • @mCoding
      @mCoding  3 года назад +6

      Thanks for bringing this to my attention. If I cut too close to speech throughout the vid this causes the RUclips autogenerated closed captions to fail, creating a lot more work for me. I've been experimenting with what the best tradeoff is on where to cut but if you noticed this then I clearly need to cut tighter.

    • @Kram1032
      @Kram1032 3 года назад +1

      @@mCoding I suspect there is quite an art to "the correct" jump cut timing.
      Fwiw it seemed fine to me but I also watched on double speed so the timing will look tighter for me anyways. It certainly could have been shorter.
      In order to closed captions problem, the thing to do is probably a cross fade? Not sure if you're doing that anyway. But effectively that should allow you to go tighter perceptually while on a per-sample-level it's smoother

    • @TheMomo1501
      @TheMomo1501 3 года назад +7

      I find your timing very good. Gives me some time to ponder about what you said. Please keep it this way.

  • @RedStoneMatt
    @RedStoneMatt 3 года назад

    3.10 ? Okay no, so it means that we'll go from 39 to 310 ? that will break the sorting of the installation paths of python versions, meh