Skip to content

Rename async -> asynchronous arguments (but keep async for now) #21 #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

edenhill
Copy link
Contributor

No description provided.

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OOO", kws,
&msg, &offsets, &async_o))
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OOOO", kws,
&msg, &offsets, &async_o, &async_o))
Copy link

Choose a reason for hiding this comment

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

That's quite nice, does it just overwrite based on which one is set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, this works since ParseTupleAndKeywords returns borrowed references and does not increase the refcount for each matched object (which wouldn't work here).

@mhowlett
Copy link
Contributor

mhowlett commented Feb 21, 2018

LGTM, assuming there is good enough motivation for the name change in the first place.

@edenhill edenhill merged commit b2bf9bf into master Feb 22, 2018
@edenhill
Copy link
Contributor Author

Shout out to @johnnoone for the initial PR, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants