Message405851
There is a difference if you modify the arguments list after creating a thread.
args = [1]
t = threading.Thread(target=access, args=args)
args[0] = 2
t.start()
Would it call access(1) or access(2)? |
|
Date |
User |
Action |
Args |
2021-11-06 09:09:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, docs@python |
2021-11-06 09:09:32 | serhiy.storchaka | set | messageid: <1636189772.75.0.00468942057566.issue45735@roundup.psfhosted.org> |
2021-11-06 09:09:32 | serhiy.storchaka | link | issue45735 messages |
2021-11-06 09:09:32 | serhiy.storchaka | create | |
|