Re: Modules Objects in Python

2020-01-18 Thread Chris Angelico
On Sun, Jan 19, 2020 at 12:56 PM M.R.P. wrote: > > Are modules objects in python? Yes, modules are objects. You can import a module, and then work with it as any other object. You can have a dictionary mapping names to modules (Python has one of these internally). They have a type, they ca

Re: Modules Objects in Python

2020-01-18 Thread DL Neil via Python-list
On 19/01/20 2:51 PM, M.R.P. wrote: Are modules objects in python? Modules offer an independent namespace implemented by a dictionary object - so you may dir() (or help()) and moduleNM.__dict__, and thus pick-up data values and code-units. So, they have many characteristics and behaviors

Modules Objects in Python

2020-01-18 Thread M.R.P.
Are modules objects in python? -- https://mail.python.org/mailman/listinfo/python-list