the global keyword:

Random832 random832 at fastmail.com
Sat Jun 11 21:27:47 EDT 2016


On Sat, Jun 11, 2016, at 20:12, Marcin Rak wrote:
> What about variables that are user defined classes?  Are they referenced
> or copied?

It will reference the same object, but if the variable is reassigned in
the original module it will still not update the imported variable.



More information about the Python-list mailing list