Mark Dickinson added the comment:

> 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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to