Skip to content

bpo-30940: Updating round() docs. - #6342

Merged
serhiy-storchaka merged 2 commits into
python:masterfrom
lisroach:round_docs
May 20, 2018
Merged

serhiy-storchaka merged 2 commits into
python:masterfrom
lisroach:round_docs

Conversation

@lisroach

@lisroach lisroach commented Apr 2, 2018 •

Copy link
Copy Markdown
Contributor

Updating the round docs to make it more clear what happens when None is the second argument to round().

https://bugs.python.org/issue30940

Comment thread Doc/library/functions.rst Outdated
``2``). Any integer value is valid for *ndigits* (positive, zero, or
negative). The return value is an integer if called with one argument,
otherwise of the same type as *number*.
negative). The return value is an integer if *ndigits* is omitted or *None*.

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.

It usually is formatted as ``None``.

@serhiy-storchaka serhiy-storchaka added needs backport to 3.6 docs Documentation in the Doc dir labels Apr 2, 2018

@matrixise matrixise 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.

Hi @lisroach, thank you for your PR, it's really appreciated and you have upgraded your PR with the recommendation of @serhiy-storchaka. Thank you.

@serhiy-storchaka

Copy link
Copy Markdown
Member

@mdickinson, could you please make a look?

@mdickinson mdickinson 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.

LGTM

@willingc

Copy link
Copy Markdown
Contributor

@serhiy-storchaka Would you mind merging? I'm not confident that I have the backport process down yet. Thanks.

@serhiy-storchaka
serhiy-storchaka merged commit 900c48d into python:master May 20, 2018
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @lisroach for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 20, 2018
(cherry picked from commit 900c48d)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-7009 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 20, 2018
(cherry picked from commit 900c48d)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-7010 is a backport of this pull request to the 3.6 branch.

serhiy-storchaka pushed a commit that referenced this pull request May 20, 2018
(cherry picked from commit 900c48d)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
miss-islington added a commit that referenced this pull request May 20, 2018
(cherry picked from commit 900c48d)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
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 skip news

9 participants