Skip to content

gh-156680 - Update IPv4Network and IPv6Network docstring. - #157280

Open
orsenthil wants to merge 3 commits into
python:mainfrom
orsenthil:orsenthil/fix_ipaddress_docstring
Open

gh-156680 - Update IPv4Network and IPv6Network docstring.#157280
orsenthil wants to merge 3 commits into
python:mainfrom
orsenthil:orsenthil/fix_ipaddress_docstring

Conversation

@orsenthil

@orsenthil orsenthil commented Sep 10, 2026

Copy link
Copy Markdown
Member

Mention that the address argument can be a two-tuple representing address description and a netmask.

It is a follow-up to this comment

#156681 (comment)

Mention that the address argument can be a two-tuple representing
address description and a netmask.
Comment thread Lib/ipaddress.py Outdated

The address can also be a two-tuple of an address description
and a netmask, where the address description is either a
string, a 32-bits integer, a 4-bytes packed integer, or an

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.

Suggested change
string, a 32-bits integer, a 4-bytes packed integer, or an
string, a 32-bit integer, a 4-byte packed integer, or an

I see this is inherited from the documentation, but this is grammatically incorrect currently.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes. I wanted to stay consistent. Did a minor modification for readablity and removing rst specific syntax. Is there anything else?

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.

Sorry, to clarify I suggest fixing this everywhere while we're here, if you don't mind?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, I will do that. Thanks for the quick review.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Please take a look again.

orsenthil and others added 2 commits September 10, 2026 13:00
Change to 32-bit integer and 4-byte packed integer.

Co-authored-by: Stan Ulbrych <stan@python.org>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34498719 | 📁 Comparing 5a7c602 against main (4849a01)

  🔍 Preview build  

1 file changed
± library/ipaddress.html

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.

2 participants