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

bpo-15718: Document the upper bound constrain on __len__ return value. #1256

Merged
merged 3 commits into from
Apr 23, 2017

Conversation

serhiy-storchaka
Copy link
Member

No description provided.

@serhiy-storchaka serhiy-storchaka added docs Documentation in the Doc dir needs backport to 2.7 labels Apr 22, 2017
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @birkenfeld, @ncoghlan and @1st1 to be potential reviewers.

Copy link
Contributor

@louisom louisom left a comment

Choose a reason for hiding this comment

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

Small nit point, other LGTM

In CPython, the length is required to be at most :attr:`sys.maxsize`.
If the length is larger than ``sys.maxsize`` some features (such as
:func:`len`) may raise :exc:`OverflowError`. To prevent raising
``OverflowError`` by truth value testing an object must define a
Copy link
Contributor

Choose a reason for hiding this comment

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

small nit point, add a comma after truth value testing

by truth value testing, an object must ...

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @lulouie!

Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

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

With comma

@serhiy-storchaka serhiy-storchaka merged commit 85157cd into python:master Apr 23, 2017
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Apr 23, 2017
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Apr 23, 2017
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Apr 23, 2017
serhiy-storchaka added a commit that referenced this pull request Apr 23, 2017
…turn value. (GH-1256) (#1259)

(cherry picked from commit 85157cd)
serhiy-storchaka added a commit that referenced this pull request Apr 23, 2017
…turn value. (GH-1256) (#1260)

(cherry picked from commit 85157cd)
@serhiy-storchaka serhiy-storchaka deleted the doc-len-limit branch April 23, 2017 05:51
serhiy-storchaka added a commit that referenced this pull request Apr 23, 2017
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants