def getdefaulttimeout(space): """getdefaulttimeout() -> timeout Returns the default timeout in floating seconds for new socket objects. A value of None indicates that new socket objects have no timeout. When the socket module is first imported, the default is None. """ timeout = rsocket.getdefaulttimeout() if timeout < 0.0: return space.w_None return space.wrap(timeout)