New Python 3.12 EXPLAINED 👩‍💻🐍

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

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

  • @CodingWithLewis
    @CodingWithLewis  ปีที่แล้ว +246

    Took a short break. Glad to be back :)

    • @TensorWave
      @TensorWave ปีที่แล้ว +1

      Where did you Go?lang

    • @TensorWave
      @TensorWave ปีที่แล้ว

      Make a video about goroutines.

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

      Bro your voice has changed!

    • @lumlum-f69
      @lumlum-f69 2 หลายเดือนก่อน

      Ah

  • @sasukesarutobi3862
    @sasukesarutobi3862 ปีที่แล้ว +2174

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

    • @NBT2469
      @NBT2469 ปีที่แล้ว +89

      Version 3.146…. 😂

    • @sadhlife
      @sadhlife ปีที่แล้ว +56

      sadly no, 3.14 will come out on October 2025.

    • @beefchopstick
      @beefchopstick ปีที่แล้ว

      ​@@NBT2469 version 3.1415...

    • @AAI_Einstein
      @AAI_Einstein ปีที่แล้ว +11

      @@sadhlife👁️👄👁️

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

      ​@sadhlife why?

  • @grzegorz.kocjan
    @grzegorz.kocjan ปีที่แล้ว +198

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

    • @immortalsun
      @immortalsun 11 หลายเดือนก่อน +2

      I use it all the time :)

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

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

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

      @@grzegorz.kocjan 2nd one

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

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

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

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

  • @cherubin7th
    @cherubin7th ปีที่แล้ว +654

    Everything slowly turns into Rust

    • @NBT2469
      @NBT2469 ปีที่แล้ว +15

      #IronOxideFTW 😂😂😂

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

      You mean typescript

    • @Onkoe
      @Onkoe 10 หลายเดือนก่อน +13

      ⁠@@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 10 หลายเดือนก่อน +9

      wait until you hear about Java

    • @tsiiphsycoii
      @tsiiphsycoii 10 หลายเดือนก่อน +3

      Lisp*

  • @NicholasRenotte
    @NicholasRenotte ปีที่แล้ว +212

    Ooooooh, bouta f string all over the place.

  • @GetShwiftyInHere
    @GetShwiftyInHere ปีที่แล้ว +10

    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.

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

      How it going bro? Have you learned a New programing lenguage?

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

      @VonPlanter Not quite. I started to learn C# for Unity, but have since moved to network engineering for brief time as well as cyber security. Part of my issue is that I'm kind of alone in the learning process and found it hard to ask questions on things I don't quite understand. I know that making projects is the way to learn, but I struggle without a bit of guidance outside of tutorials. I'm in the process of getting my network+ at the moment.

  • @stopthecap2644
    @stopthecap2644 ปีที่แล้ว +3

    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.

  • @marvis3557
    @marvis3557 ปีที่แล้ว +45

    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 ปีที่แล้ว +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 ปีที่แล้ว +3

      @@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 11 หลายเดือนก่อน

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

    • @ivanyzerhornetteam6023
      @ivanyzerhornetteam6023 3 หลายเดือนก่อน +3

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

  • @mynameisname6162
    @mynameisname6162 ปีที่แล้ว +147

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

    • @Danez1342
      @Danez1342 ปีที่แล้ว +8

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

    • @joaoneves4150
      @joaoneves4150 ปีที่แล้ว +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 ปีที่แล้ว +5

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

    • @Danez1342
      @Danez1342 ปีที่แล้ว

      @@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 ปีที่แล้ว

      @@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 ปีที่แล้ว +21

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

  • @Moon-D0G
    @Moon-D0G ปีที่แล้ว +211

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

    • @starstheengine
      @starstheengine ปีที่แล้ว +48

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

    • @AnassSanba-f5d
      @AnassSanba-f5d ปีที่แล้ว +12

      It's normal , it's life broo

    • @0187
      @0187 ปีที่แล้ว +5

      what library?

    • @rafsanbhuiyan
      @rafsanbhuiyan ปีที่แล้ว +5

      Wait 3+ year later to use this one ☝🏾

    • @cloudytheconqueror6180
      @cloudytheconqueror6180 ปีที่แล้ว +9

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

  • @peckychicken
    @peckychicken ปีที่แล้ว +21

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

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

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

  • @xFreeman4
    @xFreeman4 11 หลายเดือนก่อน +2

    The Sleep Token lyrics. Nice touch!

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

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

  • @lemomannmusicproductions4074
    @lemomannmusicproductions4074 2 หลายเดือนก่อน +1

    As a total noob, I really appreciate the suggestions in error messages

  • @XoxYoyZoz
    @XoxYoyZoz ปีที่แล้ว +3

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

  • @mathesukk
    @mathesukk 3 หลายเดือนก่อน +5

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

  • @TN-cx4qi
    @TN-cx4qi ปีที่แล้ว +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 ปีที่แล้ว

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

  • @shreejal
    @shreejal ปีที่แล้ว +2

    Babe wake up new python version just dropped

  • @dadusgamegalaxy9380
    @dadusgamegalaxy9380 ปีที่แล้ว +2

    Gotta go and change the python compiler for my project

  • @Danez1342
    @Danez1342 ปีที่แล้ว +2

    Never thought I would be excited about nested f strings 😂

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

    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.

  • @Some-q1
    @Some-q1 2 หลายเดือนก่อน

    This Python balance patch is fire

  • @heftychonkers
    @heftychonkers ปีที่แล้ว +17

    Thank god, i hated 3.11 errors 😅

    • @Blaxolot
      @Blaxolot ปีที่แล้ว +1

      Me too😅

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

    This TS writer is very happy to see these changes.

  • @LinuxCoder-Root
    @LinuxCoder-Root ปีที่แล้ว

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

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

    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.

  • @finnlauzer7416
    @finnlauzer7416 ปีที่แล้ว

    Hoping JavaScript natively implement static types too

  • @arunray2986
    @arunray2986 ปีที่แล้ว +1

    Great! But please work on the SPEED!

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

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

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

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

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

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

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

    Perfect. I was just wondering where my next 350 packages would come from.

  • @uplink-on-yt
    @uplink-on-yt 2 หลายเดือนก่อน

    The parser code for double quotes inside f-string double quotes must be really insane or really strict, so it knows you didn't mean to terminate the f-string there.

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

    What software do u edit the video?

  • @The-python-guy
    @The-python-guy ปีที่แล้ว +12

    I’m learning python I can’t wait

    • @TensorWave
      @TensorWave ปีที่แล้ว +5

      You don't need to wait

    • @vielta.
      @vielta. ปีที่แล้ว

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

    • @TensorWave
      @TensorWave ปีที่แล้ว +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. ปีที่แล้ว

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

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

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

  • @48_subhambanerjee22
    @48_subhambanerjee22 ปีที่แล้ว +3

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

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

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

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

    as a ML engineer, still using python 3.9.

  • @romangeneral23
    @romangeneral23 ปีที่แล้ว

    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 ปีที่แล้ว

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

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

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

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

    Type-focused Python is simply awesome

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

    We should write the whole program inside f strings.

  • @terranbricklin
    @terranbricklin ปีที่แล้ว +2

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

    • @bobmechobob
      @bobmechobob 10 หลายเดือนก่อน +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.

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

    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!

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

    I hate the readability nightmare of nested f-strings

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

    F strings never disappoint, every update it gets better

  • @lordrandom3987
    @lordrandom3987 11 หลายเดือนก่อน +2

    I'm not a fan of Python. It's not that I've never tried it, but I began with C#, then moved to JavaScript and TypeScript, and finally, Java. Compared to them, Python seems less appealing. If you doubt my assessment, give using a for loop in Python a try. I hate python syntax. And dont forget its so slow 🦥,

    • @pmrebel2733
      @pmrebel2733 3 หลายเดือนก่อน +1

      It's fast enough to perform it's task effectively. Am a PHP dev discovered its only new devs that's that talk down a language because of speed. You don't need the speed of a race car as a benchmark for your choice of family car

    • @smellycheese08
      @smellycheese08 14 วันที่ผ่านมา +2

      I don't hate it's syntax but GODDAMN its so slow. I tried to calculate a sequence with *one* very simple == check inside a for loop that did 10k iterations and it took 10 HOURS

  • @palapapa0201
    @palapapa0201 ปีที่แล้ว +2

    Nested f strings could be a vulnerability because it's basically evaling a string

  • @Aimsport-video
    @Aimsport-video ปีที่แล้ว +1

    Holding out for Py version 3.14159

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

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

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

    I heard they're thinking of changing the name - at 3.14, it'll be called Pithon.

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

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

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

    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

  • @marka.alvareznieves9213
    @marka.alvareznieves9213 ปีที่แล้ว +9

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

  • @AlbySilly
    @AlbySilly ปีที่แล้ว

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

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

    "Adaptive interpreter" Lmao they just discovered JIT

  • @dpixfunfunnyvideos5363
    @dpixfunfunnyvideos5363 3 หลายเดือนก่อน +1

    When will they make python fast like go?

  • @mudi2000a
    @mudi2000a ปีที่แล้ว +2

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

    • @unknownguywholovespizza
      @unknownguywholovespizza ปีที่แล้ว +1

      The ecosystem and yes static typing is optional

    • @mudi2000a
      @mudi2000a ปีที่แล้ว

      @@unknownguywholovespizza 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 ปีที่แล้ว +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.

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

    I can't wait for Pithon version π 😁

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

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

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

    Great! Just used Python 3.12.4.

  • @RadvinM-old
    @RadvinM-old ปีที่แล้ว +15

    Python devs are amazing❤

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

    When will Python get faster?

  • @kartikeyakandari4983
    @kartikeyakandari4983 ปีที่แล้ว

    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.

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

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

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

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

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

    the error one is so good !

  • @ouwyukha
    @ouwyukha ปีที่แล้ว +6

    double colon inside double colon is wild

  • @kumar_prabhat
    @kumar_prabhat ปีที่แล้ว

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

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

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

  • @codexed-i
    @codexed-i ปีที่แล้ว +7

    Python trying to become Rust.

    • @ahgq7
      @ahgq7 ปีที่แล้ว +5

      Just they don't care about rust's speed

    • @massimo79mmm
      @massimo79mmm ปีที่แล้ว

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

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

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

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

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

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

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

  • @yaroslavpanych2067
    @yaroslavpanych2067 ปีที่แล้ว

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

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

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

  • @vrlettuccine
    @vrlettuccine ปีที่แล้ว +2

    Does chatgpt copilot codium and Claude know these updates? They better as they code for me 😅

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

    Can't wait for Pi version Python 3.14 Pie forever

  • @MikhaKey
    @MikhaKey 2 หลายเดือนก่อน +1

    This update also broke half of my code

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

    In version 3.14 it will be renamed to Pithon?
    SCNR 😎

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

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

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

    I hope they make python fast.

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

    Was that a Sleep Token easter egg I saw ?

  • @Official.Yusticanum-Admin
    @Official.Yusticanum-Admin ปีที่แล้ว

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

  • @shahadhussein9708
    @shahadhussein9708 ปีที่แล้ว +1

    Wow thanks for sharing

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

    But they'll never fix the package situation

  • @RuriYoshinova
    @RuriYoshinova ปีที่แล้ว

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

  • @ElinLiu0823
    @ElinLiu0823 ปีที่แล้ว

    NO GIL and MultiThreads!

  • @vieuxslave9077
    @vieuxslave9077 16 วันที่ผ่านมา

    The print(« hello », end = « ») doesn’t work anymore

  • @brockobama257
    @brockobama257 18 วันที่ผ่านมา

    Python 4 dropping with GTA 6 😩

  • @dominicadrean2160
    @dominicadrean2160 ปีที่แล้ว

    I have a question what is the best laptops or computers for programming
    I am 21, and I want to get started working in programming to get jobs in software engineering or IT
    So what are the best computers or laptops for those kind of jobs
    I want to work efficiently as possible😊

    • @CodingWithLewis
      @CodingWithLewis  ปีที่แล้ว +2

      Honestly, whatever one works for you! Just get whatever is in your budget

    • @alkadoHs
      @alkadoHs ปีที่แล้ว

      If you can afford, DELL XPS 15 is the best one for software engineering

  • @5I6
    @5I6 ปีที่แล้ว

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

  • @jiaqint961
    @jiaqint961 ปีที่แล้ว +1

    How does the dev team make it free?

  • @BeefIngot
    @BeefIngot ปีที่แล้ว

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

  • @Akira-Aerins
    @Akira-Aerins หลายเดือนก่อน

    just waiting for 3.14

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

    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

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

    Python: implements typing features
    Everyone: *Booooooo*

  • @jijilr
    @jijilr 5 วันที่ผ่านมา

    It is not called "3 point 13", it is called "3 point one three"

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

    Is it faster than Java yet ;)

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

    Good evening. Which is faster: C++, C# or Python?

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

      C++