in reply to Closing an open socket by its fileno

Yep, closing that filehandle will cause the descriptor associated with it to close.

  • Comment on Re: Closing an open socket by its fileno