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 through my_module will also affect the list as seen from other_module.
Closing the report as invalid. ---------- nosy: +loewis resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5892> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com