New Python 3.12 EXPLAINED 👩‍💻🐍

แชร์
ฝัง

ความคิดเห็น • 302

  • @CodingWithLewis
    @CodingWithLewis  9 หลายเดือนก่อน +180

    Took a short break. Glad to be back :)

    • @TensorWave
      @TensorWave 9 หลายเดือนก่อน +1

      Where did you Go?lang

    • @TensorWave
      @TensorWave 9 หลายเดือนก่อน

      Make a video about goroutines.

    • @rohamrezaei3302
      @rohamrezaei3302 20 วันที่ผ่านมา

      Bro your voice has changed!

  • @sasukesarutobi3862
    @sasukesarutobi3862 9 หลายเดือนก่อน +1513

    I really hope they wait until March for release 3.14. And call it "Pi-thon".

    • @NBT2469
      @NBT2469 9 หลายเดือนก่อน +70

      Version 3.146…. 😂

    • @sadhlife
      @sadhlife 9 หลายเดือนก่อน +41

      sadly no, 3.14 will come out on October 2025.

    • @beefchopstick
      @beefchopstick 9 หลายเดือนก่อน

      ​@@NBT2469 version 3.1415...

    • @AAI_Einstein
      @AAI_Einstein 9 หลายเดือนก่อน +7

      @@sadhlife👁️👄👁️

    • @zayanarshad88
      @zayanarshad88 8 หลายเดือนก่อน

      ​@sadhlife why?

  • @cherubin7th
    @cherubin7th 9 หลายเดือนก่อน +432

    Everything slowly turns into Rust

    • @NBT2469
      @NBT2469 9 หลายเดือนก่อน +6

      #IronOxideFTW 😂😂😂

    • @bob_kazamakis
      @bob_kazamakis 8 หลายเดือนก่อน +8

      You mean typescript

    • @Onkoe
      @Onkoe 8 หลายเดือนก่อน +4

      ⁠@@Tom-dd3vl match and regular generics are pretty darn familiar from Rust, too!
      it’s by no means the language that invented these, but it did widely popularize (or maybe hype up?) their usage and the syntax! ☺️

    • @axolotlmax
      @axolotlmax 7 หลายเดือนก่อน +6

      wait until you hear about Java

    • @tsiiphsycoii
      @tsiiphsycoii 7 หลายเดือนก่อน +2

      Lisp*

  • @NicholasRenotte
    @NicholasRenotte 9 หลายเดือนก่อน +90

    Ooooooh, bouta f string all over the place.

  • @grzegorz.kocjan
    @grzegorz.kocjan 9 หลายเดือนก่อน +157

    I hope that ppl will finally start using type annotation not only with dict and list :)

    • @immortalsun
      @immortalsun 8 หลายเดือนก่อน +1

      I use it all the time :)

    • @grzegorz.kocjan
      @grzegorz.kocjan 8 หลายเดือนก่อน +8

      @@immortalsun at what level are you? :D
      1) users: dict
      2) users: dict[int, User]
      or
      3) users: Users

    • @immortalsun
      @immortalsun 8 หลายเดือนก่อน

      @@grzegorz.kocjan 2nd one

    • @cholobok
      @cholobok 5 หลายเดือนก่อน +2

      @@grzegorz.kocjanthat third level really is the sweetest. My annotations used to be way too long at times.

    • @aa-fi9ks
      @aa-fi9ks หลายเดือนก่อน

      @@grzegorz.kocjan -1) cdef user.User *user

  • @mynameisname6162
    @mynameisname6162 9 หลายเดือนก่อน +136

    The f strings update is something i am actually excited about.

    • @Danez1342
      @Danez1342 9 หลายเดือนก่อน +8

      Me too, never thought i be excited about nested f strings in python

    • @joaoneves4150
      @joaoneves4150 9 หลายเดือนก่อน +4

      Seems like they gave them new problems, no? Now I can't put hashtags inside an f string because it'll be interpreted as comment, etc?

    • @funnelfpv9435
      @funnelfpv9435 9 หลายเดือนก่อน +5

      The downside is that everybody will have to update to 3.12 to use you code.

    • @Danez1342
      @Danez1342 9 หลายเดือนก่อน

      @@funnelfpv9435 yea but everyone should already be using the most up to date version of python unless your using an older version for a specific application or out dated library

    • @Danez1342
      @Danez1342 9 หลายเดือนก่อน

      @@joaoneves4150 I would have to check I haven’t really had time to check out the update but I believe you should still be able to use hashtags as a special character like \#

  • @48_subhambanerjee22
    @48_subhambanerjee22 9 หลายเดือนก่อน +14

    Can't wait the devs to make cython official, to make it a lil faster ☠️

  • @Moon-D0G
    @Moon-D0G 9 หลายเดือนก่อน +201

    I never use python new releases, it always gives me problem with some god damn library 😢

    • @starstheengine
      @starstheengine 9 หลายเดือนก่อน +47

      Pretty much the case with every language. The libraries will need to be updated too.

    • @user-re8lt2gy3g
      @user-re8lt2gy3g 9 หลายเดือนก่อน +13

      It's normal , it's life broo

    • @0187
      @0187 9 หลายเดือนก่อน +6

      what library?

    • @rafsanbhuiyan
      @rafsanbhuiyan 9 หลายเดือนก่อน +5

      Wait 3+ year later to use this one ☝🏾

    • @cloudytheconqueror6180
      @cloudytheconqueror6180 9 หลายเดือนก่อน +9

      Python releases beta versions of a new version so libraries can be updated ahead of time.

  • @peckychicken
    @peckychicken 9 หลายเดือนก่อน +15

    Time to update versions and spend half a day reinstalling all of my libraries

    • @calmluhchannel
      @calmluhchannel 4 วันที่ผ่านมา

      I think you keep a big text file with all your libraries and install them all with the -r flag at once

  • @marvis3557
    @marvis3557 9 หลายเดือนก่อน +44

    Another cool addition is per-interpreter GIL. This means that it will be much easier to embed python into applications because GIL will no longer be shared between all of the interpreters.

    • @Mohamedrasvi
      @Mohamedrasvi 9 หลายเดือนก่อน +1

      This is currently available only from C api. Next version will have python version. But its not as good as expected. There is still some overhead when transferring data between them. Need to test.

    • @marvis3557
      @marvis3557 9 หลายเดือนก่อน +2

      @@Mohamedrasvi Yes that's why I mentioned that it's now only good for embedding Python since now subinterpreters will actually be usable unlike before when anything using GIL was unusable.

    • @atagen2186
      @atagen2186 8 หลายเดือนก่อน

      @@marvis3557using gil in embedded python was doable before, you just had a lot more invariants to handle

    • @ivanyzerhornetteam6023
      @ivanyzerhornetteam6023 16 วันที่ผ่านมา +1

      3.13 will allow to drop GIL by the use of
      -disable-gil
      flag.

  • @marka.alvareznieves9213
    @marka.alvareznieves9213 9 หลายเดือนก่อน +9

    Are you ok? You sound kinda sick. Hope you feel better if you are sick.

  • @GetShwiftyInHere
    @GetShwiftyInHere 9 หลายเดือนก่อน +4

    As a new programmer who started with Python, I'll be looking g forward to a more in depth explanation of new syntax and features! I have a little notepad I use to keep all my notes in whether I use the feature or not. I learned for back end development or cyber security. I haven't decided which I want to go for yet. I use the Flask framework.

  • @Danez1342
    @Danez1342 9 หลายเดือนก่อน +2

    Never thought I would be excited about nested f strings 😂

  • @stopthecap2644
    @stopthecap2644 9 หลายเดือนก่อน +2

    Love the type annotations… I develop in rust and py, and make rust python modules quite frequently.. some of the new features help out when switching back and forth from a syntax perspective. Baby steps.

  • @XoxYoyZoz
    @XoxYoyZoz 9 หลายเดือนก่อน +2

    the new python is being more new beginner friendly every update!

  • @heftychonkers
    @heftychonkers 9 หลายเดือนก่อน +17

    Thank god, i hated 3.11 errors 😅

    • @Blaxolot
      @Blaxolot 9 หลายเดือนก่อน +2

      Me too😅

  • @CodeInspire
    @CodeInspire 8 หลายเดือนก่อน +1

    How do you man this shorts? I love the editing. I wish there was a video about it

  • @dadusgamegalaxy9380
    @dadusgamegalaxy9380 9 หลายเดือนก่อน +2

    Gotta go and change the python compiler for my project

  • @shreejal
    @shreejal 9 หลายเดือนก่อน +1

    Babe wake up new python version just dropped

  • @zakariaelkhadir9952
    @zakariaelkhadir9952 2 วันที่ผ่านมา

    Amazing video! It would have been even better as a dedicated video on the topic.

  • @ouwyukha
    @ouwyukha 9 หลายเดือนก่อน +7

    double colon inside double colon is wild

  • @nickmurdaugh9856
    @nickmurdaugh9856 9 หลายเดือนก่อน +1

    This TS writer is very happy to see these changes.

  • @xFreeman4
    @xFreeman4 8 หลายเดือนก่อน

    The Sleep Token lyrics. Nice touch!

  • @mudi2000a
    @mudi2000a 9 หลายเดือนก่อน +2

    With each release it looks more like Java. Then, why use Python and waste so much performance?

    • @thecoolnewsguy
      @thecoolnewsguy 9 หลายเดือนก่อน +1

      The ecosystem and yes static typing is optional

    • @mudi2000a
      @mudi2000a 9 หลายเดือนก่อน

      @@thecoolnewsguy of course it is and I am a big fan of Python but I don’t like the direction with all this typing stuff. I do most of my work in Python. But even with the recent performance improvements it is still extremely slow.

    • @LionMister
      @LionMister 9 หลายเดือนก่อน +1

      ​@@mudi2000a it's slow but does it even matter? If you are working on something where performance is critical, you wouldn't even be having this conversation you'd be learning C++. Python is fine for most people, especially people learning.

  • @zacmilioli
    @zacmilioli 6 หลายเดือนก่อน +1

    F strings never disappoint, every update it gets better

  • @shahadhussein9708
    @shahadhussein9708 9 หลายเดือนก่อน +1

    Wow thanks for sharing

  • @mathesukk
    @mathesukk 19 วันที่ผ่านมา +1

    SLEEP TOKEN MENTIONED 🔥🔥🔥🔥🔥 YEAAAAAH ALKALINE LETS GOO🔥🔥🔥🔥🎉

  • @kaioneal6160
    @kaioneal6160 หลายเดือนก่อน

    I don’t use python at work but these new features are fantastic

  • @whoami83884
    @whoami83884 7 หลายเดือนก่อน

    I hate the readability nightmare of nested f-strings

  • @dpixfunfunnyvideos5363
    @dpixfunfunnyvideos5363 19 วันที่ผ่านมา +1

    When will they make python fast like go?

  • @Aimsport-video
    @Aimsport-video 9 หลายเดือนก่อน +1

    Holding out for Py version 3.14159

  • @48_subhambanerjee22
    @48_subhambanerjee22 9 หลายเดือนก่อน +3

    Am i only one who use 3.7 still now ☠️☠️💀🗿

  • @BobChess
    @BobChess 5 หลายเดือนก่อน

    Python isn't hard to understand but it's hard to understand these many trick and module to use

  • @finnlauzer7416
    @finnlauzer7416 9 หลายเดือนก่อน

    Hoping JavaScript natively implement static types too

  • @RyanPhysics
    @RyanPhysics 6 หลายเดือนก่อน

    What software do u edit the video?

  • @justADeni
    @justADeni 8 หลายเดือนก่อน

    "Adaptive interpreter" Lmao they just discovered JIT

  • @TN-cx4qi
    @TN-cx4qi 9 หลายเดือนก่อน +1

    Not like it matters, many of us devs will not get to use it in production for a decade. Places love using older more stable versions and only update when it’s necessary.

    • @DrDeuteron
      @DrDeuteron 9 หลายเดือนก่อน

      I got security concerns at work, so we’re stuck at 3.8. 😢

  • @creeptitan
    @creeptitan 9 วันที่ผ่านมา

    I still use printf style string formatting.
    I don't know why, it just works xd

  • @tinashemphisa7254
    @tinashemphisa7254 9 หลายเดือนก่อน +1

    Anything about speed ?

  • @chucktangy
    @chucktangy 8 หลายเดือนก่อน

    Double quotes within an f string? Huh Groovy has had that for like the beginning.

  • @gamalielgerona2391
    @gamalielgerona2391 26 วันที่ผ่านมา

    Great! Just used Python 3.12.4.

  • @hassan.canada
    @hassan.canada 9 หลายเดือนก่อน

    Thank you. Please make a video on building and using the WebUI library that uses web browsers as GUI.

  • @neongrey7636
    @neongrey7636 6 หลายเดือนก่อน

    as a ML engineer, still using python 3.9.

  • @petevenuti7355
    @petevenuti7355 8 หลายเดือนก่อน

    What's a good android text editor that makes whitespace visible so i can keep track of tabs and spaces?

  • @theheroofthevirgins1487
    @theheroofthevirgins1487 9 หลายเดือนก่อน +1

    I'll stick to my baby C++❤

  • @sastruga
    @sastruga 9 หลายเดือนก่อน

    Is that a sneaky sleep token reference I am seeing here 😮

  • @charizsy
    @charizsy 9 หลายเดือนก่อน

    the error one is so good !

  • @MikhaKey
    @MikhaKey วันที่ผ่านมา +1

    This update also broke half of my code

  • @Official.Yusticanum-Admin
    @Official.Yusticanum-Admin 9 หลายเดือนก่อน

    since py -3.12 is stable is the GIL manipulable or we still need to wait 3.13 ?

  • @AlbySilly
    @AlbySilly 9 หลายเดือนก่อน

    People keep telling me to learn python but with every update it just gets more confusing to me

  • @opticalmoose8091
    @opticalmoose8091 9 หลายเดือนก่อน

    nice sleep token easter egg

  • @and_rotate69
    @and_rotate69 6 หลายเดือนก่อน

    maybe they should start by making the latest versions avaible on ubuntu instead of windows

  • @ThatGuy68580
    @ThatGuy68580 9 หลายเดือนก่อน

    How do I get rid of the old python on a mac?

  • @YannBOYERDev
    @YannBOYERDev 8 หลายเดือนก่อน

    Python 3.13 or 3.14(they don't know when exactly) will have a JIT compiler to improve performance by a lot, maybe even better than PyPy... I can't wait to try it out.

  • @blitzkreg335
    @blitzkreg335 6 หลายเดือนก่อน

    Was that a Sleep Token easter egg I saw ?

  • @Android-17
    @Android-17 9 หลายเดือนก่อน

    Welcome back✋

  • @codexed-i
    @codexed-i 9 หลายเดือนก่อน +7

    Python trying to become Rust.

    • @ahgq7
      @ahgq7 9 หลายเดือนก่อน +5

      Just they don't care about rust's speed

    • @massimo79mmm
      @massimo79mmm 9 หลายเดือนก่อน

      with the python's speed, it will achieve rust's power in... oh, about 5 centuries.

    • @schlopping
      @schlopping 9 หลายเดือนก่อน

      What's bad about this lmao
      Who doesn't want good features? Who does this hurt

  • @drdrty
    @drdrty 7 หลายเดือนก่อน

    Meanwhile most legacy code won’t run on it without substantial updating

  • @Rinkiya_k_Papa
    @Rinkiya_k_Papa 6 หลายเดือนก่อน

    I hope they make python fast.

  • @colinmaharaj
    @colinmaharaj 5 หลายเดือนก่อน

    Will they have infinitely better support for operations dealing with the constant pi and Python 3.14?

  • @Kaeresh
    @Kaeresh 6 หลายเดือนก่อน

    Christ!... I remember using 2.7 and people telling me it wasn't supported as well. Then Guido, then 2to3 and 3.5... and, and... I'm so out of the loop these days T_T

  • @jose.marquez
    @jose.marquez 8 หลายเดือนก่อน

    V 3.14 needs to have a optional compiler to c++, python runs so slow like a snail, we need python on wheels :)

  • @terranbricklin
    @terranbricklin 9 หลายเดือนก่อน +2

    How tf do people code a coding platform to code better, that's crazy

    • @bobmechobob
      @bobmechobob 8 หลายเดือนก่อน +1

      For the most part, they watch the interpreter run things at a low level. They see what it is inefficient in and try to change it so that the inefficiency is solved but the interpreter still works.

  • @technophiliac8260
    @technophiliac8260 4 ชั่วโมงที่ผ่านมา

    Now your code can be even more vague

  • @demonzx6279
    @demonzx6279 7 หลายเดือนก่อน

    I see someone is a fan of sleep token

  • @fernithenoface8988
    @fernithenoface8988 8 วันที่ผ่านมา

    🎉

  • @BeefIngot
    @BeefIngot 9 หลายเดือนก่อน

    I could have sworn the death of the Gil was coming.

  • @shalevforfor5550
    @shalevforfor5550 5 หลายเดือนก่อน

    But there is still the problem that if you open a py file and there is an error you can't tell what is it cause it's just closed your only way is be running it on the cmd

  • @jiaqint961
    @jiaqint961 9 หลายเดือนก่อน +1

    How does the dev team make it free?

  • @romangeneral23
    @romangeneral23 9 หลายเดือนก่อน

    I'm still on 3.10.2 and have no plans on updating... Sad the libraries can't get updated fast enough to make it worth it...

    • @TheArrowedKnee
      @TheArrowedKnee 9 หลายเดือนก่อน

      I haven't really had any problems with libraries in 3.11, and it's a fair bit faster than 3.10

  • @PirateSimulator
    @PirateSimulator 9 หลายเดือนก่อน

    NOOO NOW I HAVE TO LEARN PYTHON AGAIN

  • @vaiterius
    @vaiterius 9 หลายเดือนก่อน

    Sweet

  • @jonobrien8848
    @jonobrien8848 7 หลายเดือนก่อน

    But they'll never fix the package situation

  • @immortalsun
    @immortalsun 8 หลายเดือนก่อน

    Oh my god, FINALLY! Newlines in f-strings!

  • @will.gallegos
    @will.gallegos 6 หลายเดือนก่อน

    When will Python get faster?

  • @kartikeyakandari4983
    @kartikeyakandari4983 9 หลายเดือนก่อน

    I am a physics student and we use matlab and simulink a lot is it worth learning python if matlab does some the things even faster.

  • @BoschingMachine
    @BoschingMachine 8 หลายเดือนก่อน

    I think my favourite thing by far about this update is that I still don't have to fucking use python.

  • @arunray2986
    @arunray2986 9 หลายเดือนก่อน +1

    Great! But please work on the SPEED!

    • @pmrebel2733
      @pmrebel2733 20 วันที่ผ่านมา

      Python is fast enough for its intended use. Most projects don't need astronomical speed to work fine.

  • @aaravinthan001
    @aaravinthan001 9 หลายเดือนก่อน

    I need to learn Python tell me where I can learn best that

  • @The-python-guy
    @The-python-guy 9 หลายเดือนก่อน +12

    I’m learning python I can’t wait

    • @TensorWave
      @TensorWave 9 หลายเดือนก่อน +5

      You don't need to wait

    • @vielta.
      @vielta. 9 หลายเดือนก่อน

      @@TensorWaveand you didnt watch the whole video ;) he was talking about next version obviously

    • @TensorWave
      @TensorWave 9 หลายเดือนก่อน +2

      @@vielta. you don't need the latest version of python to learn Python. Nothing ground breaking in python 3.12 that a beginner needs to start with 3.12

    • @vielta.
      @vielta. 9 หลายเดือนก่อน

      @@TensorWave and where did I wrote that you need the latest? Eh?

  • @SkyyySi
    @SkyyySi 9 หลายเดือนก่อน

    Please tell me you actually know what generics are

  • @modernkennnern
    @modernkennnern 9 หลายเดือนก่อน

    As someone who does not even use Python; Updates to Python is one of the worst things I know. Something always breaks whenever they do it.
    How actual Python developers can live in such an unstable ecosystem is honestly baffling - when the JavaScript ecosystem is comparatively stable you know you've fucked up.

  • @FirstNameLastName-gh9iw
    @FirstNameLastName-gh9iw 8 หลายเดือนก่อน

    Can’t wait for all my code to break

  • @ski3r3n
    @ski3r3n 8 หลายเดือนก่อน

    ABOUT TIME

  • @zackwumpus9364
    @zackwumpus9364 9 หลายเดือนก่อน

    Bro im too old to keep up with changes mann

  • @luizgustavoluciopereira8913
    @luizgustavoluciopereira8913 8 หลายเดือนก่อน

    This is a fucking sleep token reference

  • @diskus_invr
    @diskus_invr 7 หลายเดือนก่อน

    Can't wait for Python pi

  • @Dopamine-.-
    @Dopamine-.- 8 หลายเดือนก่อน

    Guys I have a problem. I downloaded Python 3.12 but my terminal is still pointing to Python 3.9
    Does Anyone know how to fix that ? I searched for multiple of hours but nothing worked

  • @5I6
    @5I6 9 หลายเดือนก่อน

    I am a JavaScript programmer😐 have fun python programmer's

  • @acenio654
    @acenio654 7 หลายเดือนก่อน

    I just can't accept python for anything greater than very simple scripts due to it having typing as an afterthought.

  • @KangoV
    @KangoV 8 หลายเดือนก่อน

    Is it faster than Java yet ;)

  • @samsungemployee5243
    @samsungemployee5243 8 หลายเดือนก่อน

    Yeah but chatgpt doesnt know 3.12 yet...

  • @abuthahirumarhathab4201
    @abuthahirumarhathab4201 8 หลายเดือนก่อน

    if u do linear regression to model how performance of python changes over time and do the same for C++, we see that python will beat C++
    Gottem!

  • @JorgeSanchez-be3ws
    @JorgeSanchez-be3ws 9 หลายเดือนก่อน

    So cool!

  • @aGj2fiebP3ekso7wQpnd1Lhd
    @aGj2fiebP3ekso7wQpnd1Lhd 9 หลายเดือนก่อน +1

    I don't understand the need for Python at all. It does the same things as nearly every other scripting lang, just slower

  • @yaroslavpanych2067
    @yaroslavpanych2067 9 หลายเดือนก่อน

    Syntax breaking at minor releases?
    Remind me, do they have The standard?

  • @BearOverseer
    @BearOverseer 9 หลายเดือนก่อน

    Love python with some gravy in Nam

  • @kumar_prabhat
    @kumar_prabhat 9 หลายเดือนก่อน

    the first f strings update just sounds unethical, evil, some might call it a war crime

  • @RuriYoshinova
    @RuriYoshinova 9 หลายเดือนก่อน

    Python is becoming a real good language fr, I'm glad I learned this language instead.

  • @mannacharya4088
    @mannacharya4088 8 หลายเดือนก่อน

    Python: implements typing features
    Everyone: *Booooooo*