I am working on some Python socket code that\'s using the socket.fromfd() function.
However, this method is not available on all platforms, so I am writing some fallback
Or simply use a try..except block:
try: sock = socket.fromfd(...) except AttributeError: sock = socket.socket(...)