Skip to content

gh-149722: Fix ipaddress.collapse_addresses()#149723

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:ipaddress-collapse_addresses
Open

gh-149722: Fix ipaddress.collapse_addresses()#149723
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:ipaddress-collapse_addresses

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented May 12, 2026

  • Explicitly forbid IP interfaces, support of which was undocumented and broken.
  • Document support for IP addresses.
  • Always raise TypeError for unsupported types.
  • Add more tests.

@serhiy-storchaka serhiy-storchaka requested a review from picnixz May 12, 2026 11:56
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels May 12, 2026
@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 12, 2026

Documentation build overview

📚 cpython-previews | 🛠️ Build #32654086 | 📁 Comparing 0a4c824 against main (f5fb491)

  🔍 Preview build  

2 files changed
± library/ipaddress.html
± whatsnew/changelog.html

* Explicitly forbid IP interfaces, support of which was undocumented and broken.
* Document support for IP addresses.
* Always raise TypeError for unsupported types.
* Add more tests.
@serhiy-storchaka serhiy-storchaka force-pushed the ipaddress-collapse_addresses branch from e4ecd60 to 0a4c824 Compare May 12, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant