Skip to content

PEP 484: Remove statement about unicode, in the python2.7 section.#302

Merged
gvanrossum merged 2 commits into
python:masterfrom
matthiaskramm:unicode
Jul 18, 2017
Merged

PEP 484: Remove statement about unicode, in the python2.7 section.#302
gvanrossum merged 2 commits into
python:masterfrom
matthiaskramm:unicode

Conversation

@matthiaskramm

Copy link
Copy Markdown
Contributor

See python/typing#418 (comment).
Let's leave it up to type-checkers whether they want unicode, in Python 2 code, to mean "only unicode" or "str or unicode".

See python/typing#418 (comment).
Let's leave it up to type-checkers whether they want `unicode`, in Python 2
code, to mean "only unicode" or "str or unicode".
@the-knights-who-say-ni

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@matthiaskramm

Copy link
Copy Markdown
Contributor Author

Signed the CLA.

@brettcannon

Copy link
Copy Markdown
Member

@matthiaskramm You haven't added your GitHub username to your bugs.python.org account yet.

@matthiaskramm

Copy link
Copy Markdown
Contributor Author

I have, actually.

@matthiaskramm

Copy link
Copy Markdown
Contributor Author

Hang on, looks like I got an error email back from that

An unexpected error occurred during the processing
of your message. The tracker administrator is being
notified.

I'll try again, if needed with a different username.

@matthiaskramm

Copy link
Copy Markdown
Contributor Author

Added my GitHub username to bugs.python.org.

@brettcannon

Copy link
Copy Markdown
Member

Found the account, but now you have a new bugs.python.org account which has not signed the CLA. Can you sign it again quickly with the new bugs.python.org account you just created?

@matthiaskramm

Copy link
Copy Markdown
Contributor Author

Done.

@brettcannon

Copy link
Copy Markdown
Member

And now the CLA bot is happy. 😉

@brettcannon brettcannon requested a review from gvanrossum July 11, 2017 21:34
@matthiaskramm

Copy link
Copy Markdown
Contributor Author

Yay! :) Thanks for digging through the user database for me.

@brettcannon

Copy link
Copy Markdown
Member

@matthiaskramm quite welcome! Just glad we eventually got it resolved.

I've asked @gvanrossum to review this to make sure the wording change is okay.

@gvanrossum gvanrossum left a comment

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.

We're not likely to change this in mypy, but this compromise sounds good to me.

Comment thread pep-0484.txt Outdated
``long`` types as equivalent. For parameters typed as ``unicode`` or
``Text``, arguments of type ``str`` should be acceptable.
``long`` types as equivalent. For parameters typed as ``Text``, arguments of
both ``str`` and ``unicode`` should be acceptable.

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.

This is missing the word "types" somewhere. Maybe change "both" into "types"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adjusted the wording.

gvanrossum pushed a commit to python/typeshed that referenced this pull request Jul 18, 2017
This documents, among others, the unicode -> Union[bytes, unicode] promotion that python/peps#302 removes from PEP 484.
@gvanrossum gvanrossum merged commit 1a92d6e into python:master Jul 18, 2017
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.

5 participants