Skip to content

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

Merged
untitaker merged 5 commits intomasterfrom
fix/subprocess-and-iterators
Aug 7, 2019
Merged

fix: Fix a bunch of bugs in subprocess integration#449
untitaker merged 5 commits intomasterfrom
fix/subprocess-and-iterators

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 jan-auer and mitsuhiko August 5, 2019 14:36
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