Skip to content

gh-93244: Py_PRINT_RAW was incorrectly spelled as Py_Print_RAW. #93245

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 4 commits into from
May 29, 2022

Conversation

hawkinsw
Copy link
Contributor

Py_PRINT_RAW was incorrectly spelled as Py_Print_RAW in Include/Abstract.h

@ghost
Copy link

ghost commented May 26, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@AA-Turner
Copy link
Member

This doesn't need a news entry, please delete it.

A

@hawkinsw
Copy link
Contributor Author

hawkinsw commented May 26, 2022 via email

@hawkinsw hawkinsw force-pushed the py_print_raw_typo branch from df18d47 to ca5fc3e Compare May 26, 2022 20:53
@hawkinsw
Copy link
Contributor Author

Updated! Thanks @AA-Turner !

@AA-Turner AA-Turner requested a review from vstinner May 26, 2022 21:03
@AA-Turner
Copy link
Member

The bot asked, so I obliged!

It does say most! Non-user facing changes (e.g. comments in source code) or minor documentation changes generally don't need a NEWS entry, although sometimes it's a judgement call. Thanks for updating!

A


(What should be said about Py_Print_RAW?). */
(What should be said about Py_PRINT_RAW?). */
Copy link
Member

Choose a reason for hiding this comment

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

If you modify this comment, please answer the question. By default (flags=0), PyObject_Print() calls PyObject_Repr(), whereas Py_PRINT_RAW calls PyObject_Str(). See the doc:
https://docs.python.org/dev/c-api/object.html#c.PyObject_Print

Py_PRINT_RAW was incorrectly spelled as Py_Print_RAW.
@hawkinsw hawkinsw force-pushed the py_print_raw_typo branch from ca5fc3e to c8495ba Compare May 27, 2022 15:03
@AA-Turner
Copy link
Member

@hawkinsw please don't force push, it makes review harder. All commits to CPython are squash-merged.

Perhaps "stringified" or "converted to string" instead of ' "rendered" '? I imagine you were trying to avoid using the term string as the paragraph later discusses __repr__ against __str__, but I think distingushing those methods from the process of converting to string would be fine.

A

@hawkinsw
Copy link
Contributor Author

@hawkinsw please don't force push, it makes review harder. All commits to CPython are squash-merged.

Sorry! I didn't realize that they were squashed! I was just trying to keep the history clean!

Perhaps "stringified" or "converted to string" instead of ' "rendered" '? I imagine you were trying to avoid using the term string as the paragraph later discusses __repr__ against __str__, but I think distingushing those methods from the process of converting to string would be fine.

Great suggestion! Standby for an update.

A

@hawkinsw hawkinsw closed this May 27, 2022
@hawkinsw hawkinsw reopened this May 27, 2022
@hawkinsw
Copy link
Contributor Author

@AA-Turner Took your comment under advisement and I hope that I did the right thing!

Taking suggestion.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@hawkinsw
Copy link
Contributor Author

Took your suggestion! Thanks!

@vstinner vstinner merged commit 61e008a into python:main May 29, 2022
@vstinner
Copy link
Member

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants