On Tue, Jan 13, 2009 at 2:33 PM, "Martin v. Löwis" <mar...@v.loewis.de>wrote:
> If we start with that, we end up with ParseTuple formats for > uid_t, gid_t, pid_t, and the other dozen integral types that > POSIX has invented. > Perhaps it would be useful to provide generic support for integer types that might have different widths on different platforms? e.g.: uid_t uid = PyNumber_AS_INT_BY_SIZE(number_ob, uid_t); That way, the core does not need to know about every blah_t type used by POSIX and extension modules, while offering convenient conversion functions nonetheless. -- Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com