Skip to content

bpo-20175: Convert Modules/_multiprocessing to the Argument Clinic#14245

Merged
serhiy-storchaka merged 3 commits intopython:masterfrom
ZackerySpytz:bpo-20175-_multiprocessing-Argument-Clinic
Jul 12, 2020
Merged

bpo-20175: Convert Modules/_multiprocessing to the Argument Clinic#14245
serhiy-storchaka merged 3 commits intopython:masterfrom
ZackerySpytz:bpo-20175-_multiprocessing-Argument-Clinic

Conversation

@ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Jun 19, 2019

Py_END_ALLOW_THREADS

PyBuffer_Release(&buf);
PyBuffer_Release(buf);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed.

/*[clinic input]
_multiprocessing.SemLock.acquire

block as blocking: int = 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
block as blocking: int = 1
block as blocking: bool(accept={int}) = True

block as blocking: int = 1
timeout as timeout_obj: object = None

acquire the semaphore/lock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
acquire the semaphore/lock
Acquire the semaphore/lock.

/*[clinic input]
_multiprocessing.SemLock.release

release the semaphore/lock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
release the semaphore/lock
Release the semaphore/lock.

value: int
maxvalue: int
name: str
unlink: int
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
unlink: int
unlink: bool(accept={int})

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants