Message231123
"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()) |
|
Date |
User |
Action |
Args |
2014-11-13 16:20:20 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, AlainCALMET |
2014-11-13 16:20:20 | amaury.forgeotdarc | set | messageid: <1415895620.1.0.327825105625.issue22600@psf.upfronthosting.co.za> |
2014-11-13 16:20:20 | amaury.forgeotdarc | link | issue22600 messages |
2014-11-13 16:20:19 | amaury.forgeotdarc | create | |
|