Skip to content
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

Fixing error in tasks.py causing failures #215

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

jima80525
Copy link
Contributor

This is fixing an error I missed on a PR yesterday from an interested reader. Lesson learned - I should have tested it out before approving and not just relying on visual inspection. Apologies!

@gahjelle
Copy link
Contributor

The issue is the missing context parameter, right? As mentioned here: http://docs.pyinvoke.org/en/stable/getting-started.html#defining-and-running-task-functions

My guess is that it was removed in #213 because of a confusion as to what the name c was referring to? Which I guess is a bit particular for this repo since it deals with C code ...

I think this looks good. My one suggestion would be to use a more verbose name, ctx or even context, to avoid similar misunderstandings down the road.

@dbader
Copy link
Member

dbader commented Aug 19, 2021

Alright, thanks for the hotfix there :) I'll merge this now to fix the sample code (+1 to what @gahjelle suggested re: naming)

@dbader dbader merged commit 4fd6277 into master Aug 19, 2021
@dbader dbader deleted the jima/fixing_tasks_py_in_binding_article branch August 19, 2021 13:35
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