This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1353789218.74.0.753429660941.issue4591@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
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: <1353789218.74.0.753429660941.issue4591@psf.upfronthosting.co.za>
2012-11-24 20:33:38serhiy.storchakalinkissue4591 messages
2012-11-24 20:33:38serhiy.storchakacreate