Mark Dickinson added the comment:

Getting a C int out of a Python int is currently a bit awkward.  What do you 
think about adding a PyLong_AsInt counterpart to PyLong_AsLong?  (The 
alternative is to use PyLong_AsLong and repeat the same overflow detection code 
in many places.)

----------
nosy: +mark.dickinson

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

Reply via email to