Комментарии:
Thanks 🙏
ОтветитьWe'll learn today
ОтветитьBridges and indentations: the bane of architects...
ОтветитьType hinting: I just can’t see the appeal. For my taste, they complicate readability in most cases. 🤷♀️
ОтветитьOne thing to note about IndentationError, is that you can get it from mixing tabs and spaces to indent, or even using extra spaces here and there. I always recommend that people set their editor to auto-insert spaces at their desired tab width and to only ever use spaces for indentation, but that may just be me.
ОтветитьI really like your content, thank you 😊
ОтветитьYour ideas for the videos are pretty cool
ОтветитьNote that not having an attribute doesn’t always raise an AttributeError, since a failed lookup causes python to then check the dunder getattr method for resolution.
Which is different from dunder getattribute. Stay away from that one unless you like Recursion depth exceeded errors.
Really really useful content. Thanks
ОтветитьYou can actually have multiple statements in one line... with semicolons.
def foo(): bar = 0; return bar
Python is actually just a chain of infinite exceptions disguised as a programming language
Ответить