On Sat, 22 Apr 2017 10:37:19 +0200 Peter Otten <__pete...@web.de> wrote:
> That's unnecessary. The code protected by 'if __name__ == "__main__"' > is not executed when the module is imported. In fact that's the very > purpose of this idiom. > > "Best practice" is to avoid star imports which bind every name from > table_class that does not start with "_", including 'tk' to the same > name in the importing module. > Thank you Petter for explaining these points, most helpful. -- Regards, Phil _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor