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

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

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

the-knights-who-say-ni commented Jul 6, 2020

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

tirkarthi commented Jul 6, 2020

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

@zhongjiajie
Copy link
Contributor Author

zhongjiajie commented Jul 6, 2020

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

@tirkarthi
Copy link
Member

tirkarthi commented Jul 6, 2020

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.

Doc/faq/programming.rst Outdated Show resolved Hide resolved
Doc/faq/programming.rst Outdated Show resolved Hide resolved
Doc/faq/programming.rst Outdated Show resolved Hide resolved
Copy link
Member

@merwok merwok left a comment

Thanks for working on this improvement!

Doc/faq/programming.rst Outdated Show resolved Hide resolved
Doc/faq/programming.rst Outdated Show resolved Hide resolved
Doc/faq/programming.rst Outdated Show resolved Hide resolved
Doc/faq/programming.rst Outdated Show resolved Hide resolved
Doc/faq/programming.rst Outdated Show resolved Hide resolved
Doc/faq/programming.rst Outdated Show resolved Hide resolved
@bedevere-bot
Copy link

bedevere-bot commented Jul 10, 2020

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 Jul 15, 2020
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Éric Araujo <merwok@netwok.org>
@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 requested a review from merwok Jul 16, 2020
@merwok merwok changed the title Doc: Add output hint to faq programming Doc: Add output to example code in programming FAQ Jul 16, 2020
merwok
merwok approved these changes Jul 16, 2020
Copy link
Member

@merwok merwok left a comment

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

@zhongjiajie
Copy link
Contributor Author

zhongjiajie commented Aug 5, 2020

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

Copy link
Member

@tirkarthi tirkarthi left a comment

LGTM. Thanks.

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

zhongjiajie commented Aug 8, 2020

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

serhiy-storchaka commented Aug 8, 2020

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

@merwok merwok added the 🤖 automerge PR will be merged once it's been approved and all CI passed label Aug 8, 2020
@miss-islington miss-islington merged commit 67acf74 into python:master Aug 8, 2020
4 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Aug 8, 2020

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 <zhongjiajie955@hotmail.com>
@bedevere-bot
Copy link

bedevere-bot commented Aug 8, 2020

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

@bedevere-bot
Copy link

bedevere-bot commented Aug 8, 2020

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 <zhongjiajie955@hotmail.com>
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 <zhongjiajie955@hotmail.com>
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 <zhongjiajie955@hotmail.com>

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 🤖 automerge PR will be merged once it's been approved and all CI passed skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants