Skip to content

fix: Fix a bunch of bugs in subprocess integration #449

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 5 commits into from
Aug 7, 2019

Conversation

untitaker
Copy link
Member

@untitaker untitaker commented Aug 5, 2019

Parsing args and kwargs like that seems like a rabbit hole, but there's no other way to instrument this that I am aware of.

Fix #436.

@untitaker untitaker requested review from mitsuhiko and jan-auer August 5, 2019 14:36
@@ -123,14 +127,18 @@ def _init_argument(args, kwargs, name, position, setdefault_callback=None):

if name in kwargs:
rv = kwargs[name]
if rv is None and setdefault_callback is not None:
rv = kwargs[name] = setdefault_callback()
if setdefault_callback is not None:
Copy link
Member

Choose a reason for hiding this comment

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

I’m probably lacking context, but shouldn’t this also retain the check for None?

Copy link
Member Author

Choose a reason for hiding this comment

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

Checking what for None?

Copy link
Member

Choose a reason for hiding this comment

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

Oh wait, just realizing that you’re now passing rv into that callback.

@untitaker untitaker merged commit 8ecc159 into master Aug 7, 2019
@untitaker untitaker deleted the fix/subprocess-and-iterators branch August 7, 2019 07:36
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.

Problem with Popen arguments passed as map
2 participants