Skip to content

Conversation

@JelleZijlstra
Copy link
Member

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2022

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
Copy link
Member

It took me a while, but I finally managed to find a REPL snippet that demonstrates that this is indeed the case on my Windows machine (there might be a simpler way of demonstrating this, idk):

>>> import socket, multiprocessing
>>> sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> p = multiprocessing.Process()
>>> foo = sock.share(p._parent_pid)
>>> type(foo)
<class 'bytes'>
>>> socket.socket(fileno=foo)
<socket.socket fd=168, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>

@AlexWaygood AlexWaygood merged commit c7820b4 into python:main Nov 10, 2022
@JelleZijlstra JelleZijlstra deleted the sock branch November 10, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants