[docs] [issue17409] resource.setrlimit doesn't respect -1

Paul Price report at bugs.python.org
Thu Mar 21 22:13:18 CET 2013

Paul Price added the comment:

You missed out an "is":

   Raises :exc:`ValueError` if an invalid resource is specified, if the new soft
   limit exceeds the hard limit, or if a process tries to raise its hard limit
   (unless the process has an effective UID of super-user).  Specifying an
   infinite/unlmited limit when the hard or system limit for that resource **is** not
   unlimited will result in a :exc:`ValueError`.  ``setrlimit`` may also raise
    :exc:`error` if the underlying system call fails.


Python tracker <report at bugs.python.org>

More information about the docs mailing list