His amount of knowledge, self-confidence and pedagogy explaining all kinds of concepts and scenarios is definitely worth of all my admiration as a developer. What a sublime guy he is.
It is not crazy for me to say that the first 20 minutes of this talk taught me more than every programming class I had before I saw this for the first time ...
I think this lecture is truly one of the kind because you rarely see any python videos talking about these very niche Python concepts. Plus, his style of presentation is great.
For the `__init_subclass__` definition at 46:51, you can do something like class Base: def foo(self): return self.bar() def __init_subclass__(cls) -> None: try: bar = getattr(cls, 'bar') if not callable(bar): raise TypeError("bad user class: 'bar' must be a callable method") except AttributeError: raise TypeError("bad user class: 'bar' method not found")
yes his talks are eye opener for me . I never Enjoyed a python like Truely entertaining and gem of knowledge here . Powerhouse I should say :) Thanks to @James Powell for keeping talks interesting and Curios it really keep our brains Busy and focused when you deliver talk like this .
Clear and well-executed lecture with illuminating examples, but I was still left with one big question - which is, how the hell do we have an access to this kind of stuff, free of charge.
1:25:00 The equivalence of context manager metaphore in Java is try with resources I think, and to use an object with tey-with-resources it should implement either the AutoClosable or Closable interfaces.
With the interleaving generator at 1:24:00, what does the client code actually look like? How does the user of this kind of generator function return control back to it, after the yields in-between first/second and second/third? Is this where next() and send() get used? Is there an idiomatic way to write the client side of a coroutine without next/send?
Actually, the code in 42:17 does not result in the desired behavior. Once we import Base in user.py, python finds no bar methods in the Base class and raises an error.
it's format syntax for conversion and tells the interpreter to format the string using the repr function, check here for more info: docs.python.org/3/library/string.html#format-string-syntax
@@anomad6314 I'm looking at the list of all comptia certs and project+ seems like a business cert. I dont know how to describe it. Seems like a cert that can be used for many fields and companies. So why is it on a IT cert website?
After almost 5 years, I keep coming back to this lecture for guidance. This is way better than any python course out there
His amount of knowledge, self-confidence and pedagogy explaining all kinds of concepts and scenarios is definitely worth of all my admiration as a developer. What a sublime guy he is.
It is not crazy for me to say that the first 20 minutes of this talk taught me more than every programming class I had before I saw this for the first time ...
I think this lecture is truly one of the kind because you rarely see any python videos talking about these very niche Python concepts. Plus, his style of presentation is great.
Same ; and im here to revisit his vim skills.
06:41 Data Model Protocol (Dunder Method)
20:50 Meta Class
47:22 Decorator
01:06:32 Generator
01:24:35 Context Manager
01:37:52 Summary
01:48:18 Q&A
If only every talk on every it conference was as interesting and useful as this one.
I can't believe how good this instructor is. This is a terrific live demo training course.
For the `__init_subclass__` definition at 46:51, you can do something like
class Base:
def foo(self):
return self.bar()
def __init_subclass__(cls) -> None:
try:
bar = getattr(cls, 'bar')
if not callable(bar):
raise TypeError("bad user class: 'bar' must be a callable method")
except AttributeError:
raise TypeError("bad user class: 'bar' method not found")
i think that currently to solve this kind of problems Id use ABC and abstractmethod decorator
James Powell for the President of Python please!
This is one of the best live demo explanation of advance python concepts.. Really helpful stuff
the best explanation of decorators i ve ever seen
Just what this incredible person says about the books in the beggining is exactly what all us feel like
references is the best here. I will always keep this as one of my best resources.
yes his talks are eye opener for me . I never Enjoyed a python like Truely entertaining and gem of knowledge here . Powerhouse I should say :) Thanks to @James Powell for keeping talks interesting and Curios it really keep our brains Busy and focused when you deliver talk like this .
Clear and well-executed lecture with illuminating examples, but I was still left with one big question - which is, how the hell do we have an access to this kind of stuff, free of charge.
Вот молодец, ничего не скажешь. Синтакс побоку, главное правильный взгляд на вещи.
Still the best advanced python talk.
@19:35, I think we can implement the __call__ function to return the value of the polynomial for value x.
great lecture and the approach to make the advanced topic so easy to understand.
What a great lecture
An update for Python 3.11 in 2022 would be awesome!
Nothing of that has changed really
Where can we find more excellent lectures like this one??
Great presentation! Advanced techniques but explained very clearly - that guy is good :)
1:25:00 The equivalence of context manager metaphore in Java is try with resources I think, and to use an object with tey-with-resources it should implement either the AutoClosable or Closable interfaces.
I am a C++ dev, and seeing all the function details at runtime. WOW... I should move to python. LOL. Remember it has a cost associated with.
What’s the cost?
@@riicky_bobby speed
all we need is generator, context manager and decorators 😊
very well presented. really liked it thanks.
The degree of those polynomials is actually 2 :)
He is obviously a Python expert but not a math expert.
masterpiece
@53:55 - THIS 🙌
With the interleaving generator at 1:24:00, what does the client code actually look like?
How does the user of this kind of generator function return control back to it, after the yields in-between first/second and second/third?
Is this where next() and send() get used?
Is there an idiomatic way to write the client side of a coroutine without next/send?
Actually, the code in 42:17 does not result in the desired behavior. Once we import Base in user.py, python finds no bar methods in the Base class and raises an error.
I solved it with: "if not "bar" in body and not "Base" in name:"
nvm he actually corrects it right after
11:50 what's the behaviour of ❗mark does to the string?
it's format syntax for conversion and tells the interpreter to format the string using the repr function, check here for more info: docs.python.org/3/library/string.html#format-string-syntax
JPow uses python?
first time i see, vim coding like this.
In 9:15 How is he getting the comment to push the 2 as a superscript?
I think he used a custom digraph in vim
I wish I could have that coding power :)
Practice, practice, practice. That's what JPow would say.
a was very usefule
Sir i want hanuman ji source code please give me
ass time stamp 07:54
7:54 muscle memory.
Reason why not to use vim - it took him 8:00 minutes to write the word "class"
Has anyone ever noticed that a lot of the best programmers are fairly rubbish at typing.
I must say, your Python audience isn't very engaged.
yeah... i'm not learning Python
What you meant to say is your not learning any coding or any programming language 🤣🤣🤣
@@germ4613 may learn SQL... less programming, more database search... i think
@@anomad6314 the problem is what jobs get you sql? Think about it. That's data analyst and scientist. They have to learn sql and python and excel.
@@germ4613 change management.... great if you know excel and SQL, but virtually none require python etc...
@@anomad6314 I'm looking at the list of all comptia certs and project+ seems like a business cert. I dont know how to describe it. Seems like a cert that can be used for many fields and companies. So why is it on a IT cert website?
A 2h presentation about solving problems that didn't even have to exist if python was strongly typed
How strong typing would remove decorators, generators, overloading, etc? The only place it could do something - when he was talking about subclassing