def get_maximum_file_descriptors():
 limits = resource.getrlimit(resource.RLIMIT_NOFILE)
 result = limits[1]
 if (result == resource.RLIM_INFINITY):
  result = MAXFD
 return result

def get_maximum_file_descriptors ( ) : limits = resource . getrlimit ( resource . RLIMIT_NOFILE ) result = limits [ 1 ] if ( result == resource . RLIM_INFINITY ) : result = MAXFD return result
return the maximum number of open file descriptors for this process .