Answer the question
In order to leave comments, you need to log in
Why does id change with multiprocess Python?
I can't figure out why the id of a global variable changes in another process
Made a class to test multiprocessing
Declared a self.counter list
Created three get_1..get_3 methods that increase the length of this list. I did not use numbers, since they have their own IDs.
I made a progressbar method that should accept this changing list.
But for some reason it has the same self.counter has a different id, and when I change it in the get methods in the progressbar, it will not change, because the other id...
Answer the question
In order to leave comments, you need to log in
when i change it in get methods in progressbar it will not change because different id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question