Skip to content

Improve the markup of powers in docs #28598

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

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

serhiy-storchaka
Copy link
Member

No description provided.

@@ -41,7 +41,7 @@ IP addresses, networks and interfaces:

Return an :class:`IPv4Address` or :class:`IPv6Address` object depending on
the IP address passed as argument. Either IPv4 or IPv6 addresses may be
supplied; integers less than 2**32 will be considered to be IPv4 by default.
supplied; integers less than ``2**32`` will be considered to be IPv4 by default.
Copy link
Member Author

Choose a reason for hiding this comment

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

See how the GitHub syntax highlighter is confused with the old text.

converted to float and a float result is delivered. For example, ``10**2``
returns ``100``, but ``10**-2`` returns ``0.01``.
converted to float and a float result is delivered. For example, ``pow(10, 2)``
returns ``100``, but ``pow(10, -2)`` returns ``0.01``.
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, I always found it weird not to use the function in question in those examples.

@ambv ambv merged commit 4f05f15 into python:main Sep 28, 2021
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka and @ambv, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27 3.10

@miss-islington
Copy link
Contributor

Sorry @serhiy-storchaka and @ambv, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27 3.9

@ambv
Copy link
Contributor

ambv commented Sep 28, 2021

I'll deal with the conflicts.

ambv pushed a commit to ambv/cpython that referenced this pull request Sep 28, 2021
(cherry picked from commit 4f05f15)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-bot
Copy link

GH-28607 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Sep 28, 2021
ambv pushed a commit to ambv/cpython that referenced this pull request Sep 28, 2021
(cherry picked from commit 4f05f15)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Sep 28, 2021
@bedevere-bot
Copy link

GH-28608 is a backport of this pull request to the 3.9 branch.

ambv added a commit that referenced this pull request Sep 28, 2021
(cherry picked from commit 4f05f15)

Co-authored-by: Serhiy Storchaka <[email protected]>
ambv added a commit that referenced this pull request Sep 28, 2021
(cherry picked from commit 4f05f15)

Co-authored-by: Serhiy Storchaka <[email protected]>
@serhiy-storchaka serhiy-storchaka deleted the docs-markup-power branch September 29, 2021 09:02
@serhiy-storchaka
Copy link
Member Author

Thank you for backports @ambv.

pablogsal pushed a commit that referenced this pull request Sep 29, 2021
(cherry picked from commit 4f05f15)

Co-authored-by: Serhiy Storchaka <[email protected]>
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 issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants