Thank you all, guys. I think, now I understand import behavior more :)
Cheers,
Valia
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 27, 2007, at 10:56 PM, Gary Herron wrote:
> The variable "value" is global in module_a, and "change_value" will
> always refer to that variable.
>
> However, in module_b, when you from module_a import value,
> change_value
> you have created two new variables global to module_b that
Hi,
I'm new to Python and I've found something in its interpreter that I
don't quite understand, and I don't really know how to correctly
formulate a search query. Here's the question.
If we have a file module_a.py with the following content:
| #!/usr/bin/env python
|
| value = 'in