Martin v. Löwis mar...@v.loewis.de added the comment:
That is not a bug in Python. The import statement merely adds a
reference to the list into your module, so both variables point to the
very same list (my_module.some_list is other_module.some_list).
Therefore, any changes made to the list
New submission from David Stemmer dstem...@brandeis.edu:
Given two modules, I've seen the following kind of strange behavior with
list sorting on import and delete; a list that has been imported, sorted
and deleted remains sorted on a second import:
my_module.py:
some_list = ['b','a']