Skip to content

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!

@MSeal MSeal deleted the asynchronous branch August 19, 2025 18:04
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.

4 participants