Why self is used in Python classes?
2:25
What __builtins__ do? 2MinutesPy
1:57
Why THIS is used in Python
2:12
3 ай бұрын
__call__ in Python
2:11
3 ай бұрын
asyncio in Python - Async/Await
2:03
__new__ VS __init__ in Python
2:35
Python Yield Keyword?? 2MinutesPy
1:56
Пікірлер
@bobobo1673
@bobobo1673 9 сағат бұрын
Wtf?
@krzysiekkrzysiek9059
@krzysiekkrzysiek9059 20 сағат бұрын
Those tips are awesome. THX
@2MinutesPy
@2MinutesPy 17 сағат бұрын
Glad you like them!
@vfx7t
@vfx7t Күн бұрын
I understand just pip install redis lol !
@2MinutesPy
@2MinutesPy 21 сағат бұрын
Ohh
@jjastrzeb
@jjastrzeb Күн бұрын
Cool video! I wasn't aware that you can run Redis locally. I, for some reason, always assumed that it's an AWS-exclusive service. Would be nice to now get a video showcasing more advanced applications of Redis and maybe explaining how Redis mitigates potential wipeout of data resulting from a power outage which would empty the RAM of the machine running it
@dvoraklovelace2801
@dvoraklovelace2801 Күн бұрын
Do you recover your account?
@2MinutesPy
@2MinutesPy 21 сағат бұрын
When did I lose it, btw thanks for your concern
@compositeboson123
@compositeboson123 Күн бұрын
1:45 dude thats my name 💀💀, do ı take it as a threat or my favorite creator sending me a thank you like message? edit: also where did you found my name (and nahh ım not angry or scared or anything)
@2MinutesPy
@2MinutesPy 21 сағат бұрын
Great
@larseneivind
@larseneivind 5 күн бұрын
Is the audio also made with python? its is very well narrated? visual animations also look great!
@2MinutesPy
@2MinutesPy 4 күн бұрын
Thanks
@vasudha22
@vasudha22 6 күн бұрын
Really helpful and insightful!
@2MinutesPy
@2MinutesPy 5 күн бұрын
Glad it was helpful!
@muxymixy
@muxymixy 6 күн бұрын
Ok Sachin
@compositeboson123
@compositeboson123 7 күн бұрын
damn congrats on your 20k bro, tho we request a 20k speacial, like a discord server :)
@2MinutesPy
@2MinutesPy 6 күн бұрын
Yes definitely
@compositeboson123
@compositeboson123 6 күн бұрын
@@2MinutesPy oh my also if you decide to make a discord server ı wanna be the first one to join :)
@martin777xyz
@martin777xyz 7 күн бұрын
hopefully some genai model, like openai o1 will be able to understand the subtleties of multi-threading and be able to make appropriate modifications to the necessary modules to make them thread-safe.
@fdauti_ca
@fdauti_ca 7 күн бұрын
Hello Legend :)
@2MinutesPy
@2MinutesPy 6 күн бұрын
👋
@saravanakumarrm8100
@saravanakumarrm8100 7 күн бұрын
I always use context manager for Database Connection Great Video and Best way explained 👍
@2MinutesPy
@2MinutesPy 7 күн бұрын
Glad you liked it
@ilyhanshi
@ilyhanshi 8 күн бұрын
irb still better
@krzysiekkrzysiek9059
@krzysiekkrzysiek9059 8 күн бұрын
Awesome explenation 👌
@2MinutesPy
@2MinutesPy 7 күн бұрын
Thanks bro
@edudictivecoder464
@edudictivecoder464 8 күн бұрын
Well you could use a function having parameter *kwargs or **kwargs and each input should be passed on to it later use thode input from the function for x y z tasks or another's funtions from the function multipleinp
@ZetaFuzzMachine
@ZetaFuzzMachine 8 күн бұрын
I might actually end up working in SW development if you keep them videos coming!!
@2MinutesPy
@2MinutesPy 7 күн бұрын
Yeah, then I am on it
@pranjallkumar2374
@pranjallkumar2374 9 күн бұрын
Why is it then if i use threading the execution time is faster as compared to normal sequential execution? One thread running at a time sounds like no parallelism...
@aulerleandro
@aulerleandro 11 күн бұрын
Wow, I didn't know that I could use other names for 'self', great presentation. But because of your presentation I was wondering if the fact that the 'self' is not passed as argument during a call would be due to the Universal Function Call Syntax (UFCS) principle, at least it is so called in other languages. Then I tried and it worked!!! What is UFCS? Basicaly you can call a function with both ways `f(x,y)` or use `x.f(y)`. In Python, if you have a class like: class C(): ... def set_value(this, new_value): this.value = new_value ... my_c = C() Then you can call set_value like: my_c.set_value("My value") or: C.set_value(my_c, "My value")
@Zale370
@Zale370 11 күн бұрын
Playwright had this from the start
@ArsdeepDewangan
@ArsdeepDewangan 12 күн бұрын
Nice Content
@reneshsharma9512
@reneshsharma9512 12 күн бұрын
On point tho the best part of it was you recapping a 2 min vid man's gotta love it init?
@2MinutesPy
@2MinutesPy 11 күн бұрын
Yo thanks man
@Rice0987
@Rice0987 13 күн бұрын
usual cli shortcut reached to python ide. :)
@rexsybimatrimawahyu3292
@rexsybimatrimawahyu3292 14 күн бұрын
Hey 2 minutes py, will you talk about python circular import issue that may happen and how to avoid or fix it? thanks in advanced for these kind of contents
@curtarnolds
@curtarnolds 14 күн бұрын
Already have this in ipython
@2MinutesPy
@2MinutesPy 14 күн бұрын
Great
@judahwilson6756
@judahwilson6756 14 күн бұрын
Good stuff!! Thanks for bringing it to our attention!
@2MinutesPy
@2MinutesPy 14 күн бұрын
My pleasure!
@jabuci
@jabuci 14 күн бұрын
It should have been exactly 3 minutes and 13 seconds long. Now it's two seconds longer :(
@2MinutesPy
@2MinutesPy 14 күн бұрын
Yeah I know
@laurentverweijen9195
@laurentverweijen9195 15 күн бұрын
I want "?int" to work as in IPython
@Efandr
@Efandr 15 күн бұрын
YES SIR 🔥🔥🔥
@ytfeelslikenorthkorea
@ytfeelslikenorthkorea 15 күн бұрын
who uses python shell to program??? :)
@2MinutesPy
@2MinutesPy 15 күн бұрын
Some extraordinary guys maybe
@judahwilson6756
@judahwilson6756 14 күн бұрын
I do. More for testing libraries or logic Off hand before needing to create a file for testing things
@Killercam1225
@Killercam1225 16 күн бұрын
Would've been great to make the video 3 minutes and 13 seconds.
@2MinutesPy
@2MinutesPy 15 күн бұрын
Yeah
@rahuldev2533
@rahuldev2533 16 күн бұрын
It has to be done 20 years ago.
@2MinutesPy
@2MinutesPy 15 күн бұрын
Yeah
@silentclimber
@silentclimber 16 күн бұрын
I use ipython, but this is cool
@PunnamarajVinayakTejas
@PunnamarajVinayakTejas 17 күн бұрын
The auto indentation is the game changer for me
@2MinutesPy
@2MinutesPy 16 күн бұрын
@@PunnamarajVinayakTejas yeah I think this is also a great addition
@RagHelen
@RagHelen 17 күн бұрын
I use the IDLE.
@2MinutesPy
@2MinutesPy 16 күн бұрын
Good for you bro
@Sinke_100
@Sinke_100 16 күн бұрын
same here
@CyrillKR
@CyrillKR 17 күн бұрын
What a dedication to step out of the 2 minute mark for this epic video. Great new features, looking forward for 3.13
@2MinutesPy
@2MinutesPy 16 күн бұрын
Python 3.13 is packed with so many major changes
@MaxSamoha
@MaxSamoha 17 күн бұрын
2:35 paste mode is also a great feature
@2MinutesPy
@2MinutesPy 17 күн бұрын
They added dedicated functionality for pasting larger code blocks without any issue
@maxpythoneer
@maxpythoneer 17 күн бұрын
They enabled colored prompt and tracebacks by default, eh!
@2MinutesPy
@2MinutesPy 17 күн бұрын
Yeah, it's kinda good thing, it gives a rich look
@nottomention-h8w
@nottomention-h8w 17 күн бұрын
1:57 great, we got multiline code editing in the python shell before GTA6😂
@dweepverma3662
@dweepverma3662 17 күн бұрын
Yeah actually😂
@2MinutesPy
@2MinutesPy 17 күн бұрын
Epic
@2MinutesPy
@2MinutesPy 17 күн бұрын
Apologies guys, the video is a bit lengthy. I know, you guys aren't used to it on this channel but the video got lengthy after covering the updates in the Python 3.13 REPL.
@PunnamarajVinayakTejas
@PunnamarajVinayakTejas 17 күн бұрын
Should've made the video 2 seconds shorter to be 3:13
@2MinutesPy
@2MinutesPy 16 күн бұрын
@@PunnamarajVinayakTejas ohh, yeah i should have
@catafest
@catafest 15 күн бұрын
Is good, I will add it on my python blogger if is ok for you. I think in the future the development will come with dedicated hardware. How do you think about this ideea: hardware with python development system ?
@reda29100
@reda29100 15 күн бұрын
Average TikTok attention span
@Bigbadwolf144
@Bigbadwolf144 17 күн бұрын
Good to have, though there are libs with the same feature 🤔
@2MinutesPy
@2MinutesPy 16 күн бұрын
Libs in the REPL to edit multiline code 🤔
@emasa97
@emasa97 17 күн бұрын
hey shouldn't the numbers be 16 and 50? it looks like the order of the decorators were the other way around :/
@2MinutesPy
@2MinutesPy 16 күн бұрын
And could you explain how
@emasa97
@emasa97 16 күн бұрын
​@@2MinutesPy First sum 2+2=4, then square 4^2=16
@emasa97
@emasa97 16 күн бұрын
Okay now I see the order is nested like 2:21. What you say at 2:08 was confusing for me
@2MinutesPy
@2MinutesPy 15 күн бұрын
@@emasa97 for the first case, 2 will be squared first, we get 4 and the it will get summed 4+4=8 for the second case, 5 will get summed, we get 10 and then it will be squared 10**2=100 Hence, we got 8 and 100 in the video.
@dweepverma3662
@dweepverma3662 17 күн бұрын
Now I can test my pseudo code directly in the repl
@2MinutesPy
@2MinutesPy 16 күн бұрын
Yeah
@drew.esbssy
@drew.esbssy 17 күн бұрын
Finally
@2MinutesPy
@2MinutesPy 16 күн бұрын
Yes
@rewrite__
@rewrite__ 20 күн бұрын
as far as I understand, if you have a method foo in class Bar, you can call it as is like Bar.foo(), but when calling it from an instance like b.foo(), Python reads this as a syntactic sugar and translates it to: Bar.foo(b), passing the instance as the first variable, it makes sense since the method is declared in the class, don't remember where I read this
@aulerleandro
@aulerleandro 11 күн бұрын
yes, and you can call Bar.foo(b) or b.foo(), both ways work. I think thi is called Universal Function Call Syntax (UFCS), or Uniform Function Call Syntax, and exists in other languages and it is not only for classes member functions.