This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients dstemmer, loewis
Date 2009-05-01.06:31:52
SpamBayes Score 4.591518e-06
Marked as misclassified No
Message-id <1241159514.69.0.855974786759.issue5892@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-05-01 06:31:54loewissetrecipients: + loewis, dstemmer
2009-05-01 06:31:54loewissetmessageid: <1241159514.69.0.855974786759.issue5892@psf.upfronthosting.co.za>
2009-05-01 06:31:53loewislinkissue5892 messages
2009-05-01 06:31:52loewiscreate