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 mark.dickinson
Recipients amaury.forgeotdarc, mark.dickinson, pitrou, serhiy.storchaka, sjoerd, vstinner
Date 2012-11-24.20:11:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353787880.56.0.134483079102.issue4591@psf.upfronthosting.co.za>
In-reply-to
Content
> 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?
History
Date User Action Args
2012-11-24 20:11:20mark.dickinsonsetrecipients: + mark.dickinson, sjoerd, amaury.forgeotdarc, pitrou, vstinner, serhiy.storchaka
2012-11-24 20:11:20mark.dickinsonsetmessageid: <1353787880.56.0.134483079102.issue4591@psf.upfronthosting.co.za>
2012-11-24 20:11:20mark.dickinsonlinkissue4591 messages
2012-11-24 20:11:20mark.dickinsoncreate