Message255942
Are there platforms where rlim_t is signed? Posix defines it as unsigned: <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_resource.h.html>.
Also there are subtle differences between the PyLong_AsUnsigned[. . .] and the current signed versions. The unsigned version does not call __int__() so you would no longer be able to pass a float().
Also this could cause compatibility problems with code that was written for earlier documentation, which said to use -1 to mean unlimited. Perhaps that is why the code has rlim_* & RLIM_INFINITY masking. |
|
Date |
User |
Action |
Args |
2015-12-05 10:08:07 | martin.panter | set | recipients:
+ martin.panter, loewis, nnorwitz, mdr0, sable, giampaolo.rodola, ajaksu2, r.david.murray, BreamoreBoy, wiggin15 |
2015-12-05 10:08:07 | martin.panter | set | messageid: <1449310087.13.0.421210829222.issue9917@psf.upfronthosting.co.za> |
2015-12-05 10:08:07 | martin.panter | link | issue9917 messages |
2015-12-05 10:08:06 | martin.panter | create | |
|