Steven,
Very helpful! Thanks for the thorough explanation.
-- Scott
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday, June 28, 2016 at 5:20:16 PM UTC-6, John Pote wrote:
> Correct me if I'm wrong but is not the above only true if bar has been
> assigned to and thus references an imutable object? In your example the
> string "oranges".
> If bar has been assigned to a mutable object in module foo then
On Tuesday, June 28, 2016 at 4:37:45 PM UTC-6, Michael Selik wrote:
> Why do you want to?
I have a standalone script that grew and grew until reaching an unmaintainable
size. I was hoping to refactor it into a relatively small top-level script
plus a package containing a bunch of relatively sma
I'm trying to create a package in which the constituent files share some state.
Apparently, I don't understand scopes, namespaces, and package semantics as
well as I thought I did. Here's the directory structure for a simplified
example:
example/
__init__.py
vars.py
funcs.py