Message176315
| 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. |
|