filmov
tv
Python Tips and Hints #1 - Dunder functions __main__ and __name__

Показать описание
In this first Python hints video we will talk about the difference between building a program using def main() and one using code like:
if __name__=="__main__"
We will go through a couple of code examples and show you to reference material for further reading. The links are below.
Lexical analysis
Special considerations for __main__
Dunder in classes
Top level code discussion and use: __name__ and __main__
And since the channel is mostly about networking ... books and other products for networkers
if __name__=="__main__"
We will go through a couple of code examples and show you to reference material for further reading. The links are below.
Lexical analysis
Special considerations for __main__
Dunder in classes
Top level code discussion and use: __name__ and __main__
And since the channel is mostly about networking ... books and other products for networkers