[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

/ cpython Public

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

bpo-30721: Addresses minor fixes of adding ? to redirection syntax #3131

Merged
merged 2 commits into from Aug 18, 2017

Conversation

Copy link
Member

CuriousLearner commented Aug 18, 2017

Addresses the minor fixes for PR #2345

cc @ncoghlan

https://bugs.python.org/issue30721

Copy link
Contributor

ncoghlan left a comment

While English does in general suggest that trailing punctuation should go inside quotation marks (although I've never personally understood that guideline), in this case it should definitely be outside, as what's inside is expected to be a Python expression, not English text.

@@ -827,7 +827,7 @@ binary_op(PyObject *v, PyObject *w, const int op_slot, const char *op_name)
PyErr_Format(PyExc_TypeError,
"unsupported operand type(s) for %.100s: "
"'%.100s' and '%.100s'. Did you mean \"print(<message>, "
"file=<output_stream>)\"",
"file=<output_stream>)?\"",
Copy link
Contributor

ncoghlan Aug 18, 2017

Choose a reason for hiding this comment

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

The question mark should be outside the quote marks, since it isn't part of the suggested Python code.

Copy link

bedevere-bot commented Aug 18, 2017

A Python core developer, ncoghlan, 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 didn't expect the Spanish Inquisition!
I will then notify ncoghlan along with any other core developers
who have left a review that you're ready for them to take another look
at this pull request.

Copy link
Member Author

CuriousLearner commented Aug 18, 2017

I didn't expect the Spanish Inquisition!

Copy link

bedevere-bot commented Aug 18, 2017

Nobody expects the Spanish Inquisition!

@ncoghlan: please review the changes made to this pull request.

ncoghlan merged commit a7c449b into python:master Aug 18, 2017
4 checks passed
Copy link
Member Author

CuriousLearner commented Aug 18, 2017

Thanks @ncoghlan :)

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.

None yet

5 participants