[New-bugs-announce] [issue17919] AIX POLLNVAL definition causes problems

Delhallt report at bugs.python.org
Mon May 6 17:06:57 CEST 2013

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list