detach() -> file descriptor Close the socket object without closing the underlying file descriptor. The object cannot be used after this call, but the file descriptor can be reused for other purposes. The file descriptor is returned.
(self)
| 520 | self._real_close() |
| 521 | |
| 522 | def detach(self): |
| 523 | """detach() -> file descriptor |
| 524 | |
| 525 | Close the socket object without closing the underlying file descriptor. |
| 526 | The object cannot be used after this call, but the file descriptor |
| 527 | can be reused for other purposes. The file descriptor is returned. |
| 528 | """ |
| 529 | self._closed = True |
| 530 | return super().detach() |
| 531 | |
| 532 | @property |
| 533 | def family(self): |
no test coverage detected