Dunder Name and Dunder Main is the best method to avoid conflict between modules?

Asked

Viewed 27 times

0

if __name__ == '__main__':
    # execução do código

This is the best way to avoid unwanted information when importing one module to another?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.