Author serhiy.storchaka
Recipients amaury.forgeotdarc, mark.dickinson, pitrou, serhiy.storchaka, sjoerd, vstinner
Date 2012-11-24.20:33:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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:38serhiy.storchakasetrecipients: + serhiy.storchaka, sjoerd, amaury.forgeotdarc, mark.dickinson, pitrou, vstinner
2012-11-24 20:33:38serhiy.storchakasetmessageid: <>
2012-11-24 20:33:38serhiy.storchakalinkissue4591 messages
2012-11-24 20:33:38serhiy.storchakacreate