Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-157418: Correct the IocpProactor recvfrom_into parameter name - #157422

Open
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:asyncio-sock
Open

gh-157418: Correct the IocpProactor recvfrom_into parameter name#157422
lpyu001 wants to merge 1 commit into
python:mainfrom
lpyu001:asyncio-sock

Conversation

@lpyu001

@lpyu001 lpyu001 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

@picnixz

picnixz commented Sep 13, 2026

Copy link
Copy Markdown
Member

That's a breaking change strictly speaking. If we are not sure about how people are calling the APIs, we should be more careful.

@picnixz

picnixz commented Sep 13, 2026

Copy link
Copy Markdown
Member

Note that socket.recvfrom_into expects a flags not a number of bytes as its last parameter so I don't know what would be correct here (it's surprising that we don't have a flag anymore actually).

@picnixz

picnixz commented Sep 13, 2026

Copy link
Copy Markdown
Member

to be clear: I acknowledge this is a bug but I don't know if changing the parameter name is safe without a warning or whatever. Can you check the call sites and browse OSS repos?

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