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.
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.
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 .
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
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.
@@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?