[issue5892] strange list.sort() behavior on import, del and inport again

2009-05-01 Thread Martin v. Löwis
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

[issue5892] strange list.sort() behavior on import, del and inport again

2009-04-30 Thread David Stemmer
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']