Serhiy Storchaka <[email protected]> added the comment:
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)?
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45735>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com