Message176313
> Though _PyLong_FromUid and _PyLong_FromGid seem fine.
Hmm. I take that back. I don't think any of this really belongs in Objects/longobject.c. Right now that module contains entirely portable C code that knows almost nothing about operating systems. In particular, the knowledge that -1 has special meaning doesn't really have a place in the longobject implementation.
Is it possible to just use PyLong_FromLong / PyLong_FromLongLong etc. depending on the precision of uid_t / gid_t? |
|
| Date |
User |
Action |
Args |
| 2012-11-24 20:11:20 | mark.dickinson | set | recipients:
+ mark.dickinson, sjoerd, amaury.forgeotdarc, pitrou, vstinner, serhiy.storchaka |
| 2012-11-24 20:11:20 | mark.dickinson | set | messageid: <[email protected]> |
| 2012-11-24 20:11:20 | mark.dickinson | link | issue4591 messages |
| 2012-11-24 20:11:20 | mark.dickinson | create | |
|