title: Python on OSx - set the new limit of open files
body: <p>I want to set a new limit of possible open files with the command:</p>
  
  <pre><code>import resource
  
      resource.setrlimit(RLIMIT_NOFILE, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
  </code></pre>
  
  <p>However, I'm getting an error: <code>ValueError: current limit exceeds maximum limit</code>
  Is there any way to overcome this and set a new limit on OS X?</p>