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 serhiy.storchaka
Recipients docs@python, rhettinger, serhiy.storchaka, tim.peters
Date 2021-11-06.09:09:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636189772.75.0.00468942057566.issue45735@roundup.psfhosted.org>
In-reply-to
Content
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)?
History
Date User Action Args
2021-11-06 09:09:32serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, docs@python
2021-11-06 09:09:32serhiy.storchakasetmessageid: <1636189772.75.0.00468942057566.issue45735@roundup.psfhosted.org>
2021-11-06 09:09:32serhiy.storchakalinkissue45735 messages
2021-11-06 09:09:32serhiy.storchakacreate