Antoine Pitrou added the comment:
Thank you, Berker. I'm now closing the issue.
--
assignee: christian.heimes -
nosy: +pitrou
resolution: - out of date
stage: - committed/rejected
status: open - closed
superseder: - select module - kevent ident field 64 bit issue
Berker Peksag added the comment:
The bug has been fixed in issue 7211.
Related changeset: http://hg.python.org/cpython/rev/f89a93a778a8#l4.63
See the output of kevent-repr-test.py(tested in 3.2.3 and 3.3.0):
select.kevent ident=1 filter=-1 flags=0x1 fflags=0x0 data=0x0 udata=0x0
I think
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - christian.heimes
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6744
___
Jessica McKellar jessica.mckel...@gmail.com added the comment:
Added a tiny example to generate the error, repeated here. Just:
from select import kevent
if __name__ == '__main__':
ev = kevent(1)
print(repr(ev))
--
Added file:
New submission from Jessica McKellar jessica.mckel...@gmail.com:
kqueue_event_repr uses PyBytes_FromString when every other repr uses
PyUnicode_FromString, and this gets you a TypeError: __repr__ returned
non-string (type bytes). The patch swaps in PyUnicode_FromString and
adds a very simple