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 amaury.forgeotdarc
Recipients AlainCALMET, amaury.forgeotdarc
Date 2014-11-13.16:20:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415895620.1.0.327825105625.issue22600@psf.upfronthosting.co.za>
In-reply-to
Content
"solution.put(c)" takes a *reference* to the list c.
And then the test() function continues running!

By the time the list is serialized and sent back to the main process (in another thread), the test() function has already changed it...

As you noticed, you can use immutable objects instead (string, int), or make a copy of the list: solution.put(c.copy())
History
Date User Action Args
2014-11-13 16:20:20amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, AlainCALMET
2014-11-13 16:20:20amaury.forgeotdarcsetmessageid: <1415895620.1.0.327825105625.issue22600@psf.upfronthosting.co.za>
2014-11-13 16:20:20amaury.forgeotdarclinkissue22600 messages
2014-11-13 16:20:19amaury.forgeotdarccreate