On 2020-06-04 04:18:31 -0400, Terry Reedy wrote:
> On 6/3/2020 11:48 PM, pytho...@gmail.com wrote:
> > (1) Main.py
>
> The PEP8 standard is all lower case for modules, leaving TitleCase for
> classes, so, for instance, file/module 'editor' contains the definition of
> class 'Editor' as its main cl
On 6/3/2020 11:48 PM, pytho...@gmail.com wrote:
I am struggling with making modules global for all definitions in my code.
You cannot. You must import every module either directly or indirectly
into every module that uses it.
I faced the problem with the pyomo modules but can generate the
> On 4 Jun 2020, at 04:48, pytho...@gmail.com wrote:
>
> Hi,
>
> I am struggling with making modules global for all definitions in my code.
Each python module has to import all the modules it needs.
Importing on one module does not make the imported names
usable from another module.
What pyt
pytho...@gmail.com wrote:
> Hi,
>
> I am struggling with making modules global for all definitions in my code.
Don't. Global names in Python are global to a single module, not your entire
application.
> I faced the problem with the pyomo modules but can generate the error with
> pandas too.
>
I just realized that the problem is related to python 3.8 and not to 3.7.
Am Donnerstag, 4. Juni 2020 05:48:31 UTC+2 schrieb pyth...@gmail.com:
> Hi,
>
> I am struggling with making modules global for all definitions in my code.
> I faced the problem with the pyomo modules but can generate the e
Hi,
I am struggling with making modules global for all definitions in my code.
I faced the problem with the pyomo modules but can generate the error with
pandas too.
The model structure looks as follow:
I have 3 '.py' files each of them containing definitions. The first controls
inputs and ou