Message176315
> Hmm. I take that back. I don't think any of this really belongs in Objects/longobject.c.
I am also not happy with that. Originally they were in Modules/posixmodule.c. However where should we place the declarations? We have not posixmodule.h. PyLong_FromPid()/PyLong_AsPid() placed right in Include/longobject.h. Are you have any suggestions?
> Is it possible to just use PyLong_FromLong / PyLong_FromLongLong etc. depending on the precision of uid_t / gid_t?
No. uid_t/gid_t can be large than maximal signed long, and long long can be not defined. See issue2005 where more complex patch proposed. |
|
Date |
User |
Action |
Args |
2012-11-24 20:33:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, sjoerd, amaury.forgeotdarc, mark.dickinson, pitrou, vstinner |
2012-11-24 20:33:38 | serhiy.storchaka | set | messageid: <1353789218.74.0.753429660941.issue4591@psf.upfronthosting.co.za> |
2012-11-24 20:33:38 | serhiy.storchaka | link | issue4591 messages |
2012-11-24 20:33:38 | serhiy.storchaka | create | |
|