Skip to content

Separate subprocess writing/parsing into their own functions#201

Merged
mdboom merged 3 commits intopsf:mainfrom
mdboom:improve-documentation-of-subprocess-hooks
Sep 6, 2024
Merged

Separate subprocess writing/parsing into their own functions#201
mdboom merged 3 commits intopsf:mainfrom
mdboom:improve-documentation-of-subprocess-hooks

Conversation

@mdboom
Copy link
Copy Markdown
Collaborator

@mdboom mdboom commented Sep 4, 2024

...and document

As suggested by @corona10 #197 (comment)

@mdboom mdboom requested a review from corona10 September 4, 2024 14:45
# Write timing in seconds into stdout
print(dt, file=out)
print(max_rss or -1, file=out)
print(json.dumps(metadata), file=out)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you call .dump() on sys.stdout?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sure, that makes sense.

Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Copy Markdown
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you for adopting my suggestions!

Co-authored-by: Victor Stinner <vstinner@python.org>
@mdboom mdboom merged commit bf02a8b into psf:main Sep 6, 2024
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