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 davin
Recipients davin, sbt, td
Date 2015-02-20.21:27:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424467665.22.0.370746224886.issue23484@psf.upfronthosting.co.za>
In-reply-to
Content
Interesting!  The documentation in 3.4 as well as 2.7 indicates that the keyword should be 'blocking' yet the code implements this as 'block'.

Code to reproduce empirically what is actually implemented:
import multiprocessing
dummy_lock = multiprocessing.Lock()
dummy_lock.acquire(blocking=False)   # Raises a TypeError on invalid keyword

The same code changed to 'block=False' works happily.


The code should be changed to reflect the docs and a test probably added too that both exercises this keyword explicitly by name and tests to see if we've fallen out of sync with the threading module.
History
Date User Action Args
2015-02-20 21:27:45davinsetrecipients: + davin, sbt, td
2015-02-20 21:27:45davinsetmessageid: <1424467665.22.0.370746224886.issue23484@psf.upfronthosting.co.za>
2015-02-20 21:27:45davinlinkissue23484 messages
2015-02-20 21:27:45davincreate