New submission from Delhallt: I encounted exactly the same issue http://bugs.python.org/issue923315 with test_asyncore, test_asynchat and test_poll.
On AIX6.1, POLLNVAL=0x8000=SHRT_MIN=SHRT_MAX+1 (on 2 bytes) and parsing events with PyArg_ParseTuple as a signed short 'h' do not work, i.e "OverflowError: signed short integer is greater than maximum" occurs. I changed 'h' to 'H' in the attached patch, and delete associated Overflow test. Perhaps, they're a better way to handle that ? ---------- components: Extension Modules files: Python-2.7.4-pollnval.patch keywords: patch messages: 188558 nosy: delhallt priority: normal severity: normal status: open title: AIX POLLNVAL definition causes problems type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file30151/Python-2.7.4-pollnval.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17919> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com