[pypy-issue] [issue1032] resource module, incorrect magic numbers

Da_Blitz tracker at bugs.pypy.org
Sun Feb 5 16:09:32 CET 2012

New submission from Da_Blitz <pypy at pocketnix.org>:

The resource module in lib-pypy/resource.py has invalid magic numbers for

pypy currently declares this as 4292967295L where as cpython (and the man pages)
have this set to -1

when cast to a c_int or c_long this gets converted automatically to the correct
value of -1.

# eg: wont work as expected
getrlimit(resource.RLIMIT_AS)[0] == -1
# will work
getrlimit(resource.RLIMIT_AS)[0] == resource.RLIM_INFINITY

while not a show stopper, it may trip someone else up

messages: 3867
nosy: dablitz, pypy-issue
priority: bug
release: 1.7
status: unread
title: resource module, incorrect magic numbers

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list