Re: Module import best practice

2020-03-26 Thread DL Neil via Python-list
I'm not a professional coder. I'm an environmental consultant and I use a I take it all back then... No! No need to feel apologetic, the Python community works hard to be inclusive - which I take to include levels of expertise, not merely countering the various "-isms". variety of tools

Re: Module import best practice

2020-03-26 Thread Rich Shepard
On Fri, 27 Mar 2020, DL Neil via Python-list wrote: My personal approach is to follow 'the Zen of Python' and prefer "explicit" over "implicit". (it helps beginners, as well as us old-fogies whose minds cannot retain things for very long) DL, That was my original approach. I see little

Re: Module import best practice

2020-03-26 Thread DL Neil via Python-list
Rich, On 26/03/20 9:09 AM, Rich Shepard wrote: I'm writing an application using Python3 and Tkinter. The views/ directory contain multiple modules, including one called commonDlgs.py. This contains classes (such as those for validating data entry) used by all the data entry views. Some

RE: Module import best practice

2020-03-26 Thread Rich Shepard
On Thu, 26 Mar 2020, Schachner, Joseph wrote: I can only tell you my preference. I prefer that Python modules be as self-contained as possible, because "global" is within a module; to share between modules you have to import something, as you know. Joseph, This makes good sense. I don't know