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

reSTify PEP 285 #366

Merged
merged 2 commits into from
Sep 12, 2017
Merged

reSTify PEP 285 #366

merged 2 commits into from
Sep 12, 2017

Conversation

mozillazg
Copy link
Contributor

refer #4

pep-0285.txt Outdated

All built-in operations that are defined to return a Boolean
result will be changed to return False or True instead of 0 or 1.
In particular, this affects comparisons (<, <=, ==, !=, >, >=, is,
Copy link
Member

Choose a reason for hiding this comment

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

Probably should make the comparison operators literals.

pep-0285.txt Outdated
- Other languages (C99, C++, Java) name the constants "false" and
"true", in all lowercase. For Python, I prefer to stick with
the example set by the existing built-in constants, which all
use CapitalizedWords: ``None``, Ellipsis, ``NotImplemented`` (as well as
Copy link
Member

Choose a reason for hiding this comment

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

Ellipsis should be made a literal.

@mozillazg
Copy link
Contributor Author

@brettcannon Thanks for your review! Please check again.

@gvanrossum gvanrossum merged commit b596c6a into python:master Sep 12, 2017
@gvanrossum
Copy link
Member

Looks good now.

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