Skip to content

Doc: Add output to example code in programming FAQ #21346

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 7 commits into from
Aug 8, 2020

Conversation

zhongjiajie
Copy link
Contributor

@zhongjiajie zhongjiajie commented Jul 6, 2020

Add output hint to document, part faq/programming, section How do I write a function with output parameters (call by reference)?.

This patch make the output hint just like prefix code block.

Automerge-Triggered-By: @merwok

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@zhongjiajie

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@zhongjiajie
Copy link
Contributor Author

zhongjiajie commented Jul 6, 2020

I create new account in b.p.o, and singed CLA just now.
Just a doc/comment change, I don't know should I create new issue in b.p.o or not. If should create a new one, let me know, thx

@tirkarthi
Copy link
Member

I have added skip-issue and skip-news labels since minor changes don't need issue and news entry.

@zhongjiajie
Copy link
Contributor Author

@tirkarthi Thanks. Does it mean this PR could be merged after CLA pass/effective?

@tirkarthi
Copy link
Member

It would still require an approval from a core developer to get merged. I added the labels so that the PR is green with all checks passing.

Copy link
Member

@merwok merwok left a comment

Choose a reason for hiding this comment

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

Thanks for working on this improvement!

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

zhongjiajie and others added 4 commits July 15, 2020 23:34
@zhongjiajie
Copy link
Contributor Author

zhongjiajie commented Jul 15, 2020

It's odd, there is a new commit in my branch zhongjiajie@5eec277 but not including in this PR, I don't know what going on.

@zhongjiajie zhongjiajie force-pushed the doc-faq-programming branch from f71e07c to 5eec277 Compare July 15, 2020 16:46
@zhongjiajie zhongjiajie requested a review from merwok July 16, 2020 14:33
@merwok merwok changed the title Doc: Add output hint to faq programming Doc: Add output to example code in programming FAQ Jul 16, 2020
Copy link
Member

@merwok merwok left a comment

Choose a reason for hiding this comment

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

Looks good! I’d just like a second review.

@zhongjiajie
Copy link
Contributor Author

@tirkarthi Could you please take a look at this patch? we need one more approval here

Copy link
Member

@tirkarthi tirkarthi left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@tirkarthi tirkarthi closed this Aug 6, 2020
@tirkarthi tirkarthi reopened this Aug 6, 2020
@zhongjiajie
Copy link
Contributor Author

So could we merge it to master?

@merwok
Copy link
Member

merwok commented Aug 8, 2020

I’m just not clear about backport rules given that 3.9 is in beta

@serhiy-storchaka
Copy link
Member

Documentation changes can be backported to any maintained version. Feature freeze does not affect this.

@miss-islington miss-islington merged commit 67acf74 into python:master Aug 8, 2020
@miss-islington
Copy link
Contributor

Thanks @zhongjiajie for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 8, 2020
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74)

Co-authored-by: Jiajie Zhong <[email protected]>
@bedevere-bot
Copy link

GH-21790 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Aug 8, 2020
@bedevere-bot
Copy link

GH-21791 is a backport of this pull request to the 3.8 branch.

@merwok
Copy link
Member

merwok commented Aug 8, 2020

Thanks for the PR!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 8, 2020
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74)

Co-authored-by: Jiajie Zhong <[email protected]>
miss-islington added a commit that referenced this pull request Aug 9, 2020
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74)

Co-authored-by: Jiajie Zhong <[email protected]>
miss-islington added a commit that referenced this pull request Aug 9, 2020
…H-21791)

Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74)


Co-authored-by: Jiajie Zhong <[email protected]>

Automerge-Triggered-By: @merwok
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.html#how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.html#how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants