<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">OK, I'll get onto that this evening. In fact, if we use PyBytes, it looks like we can make a version that works for 2.6 and 3.x, although I think that wouldn't work for anything before 2.6.<font color="#888888"><br>
</font></blockquote><div><br>I've made the changes to use bytes, and updated the code with recent changes. Issues it still faces:<br>- Buffers: It won't compile on Python 3 with references to old-style buffer methods (e.g. PyBuffer_FromObject, Py_END_OF_BUFFER). This is the remaining bit commented out. The new MemoryView method isn't in Python 2.6 (it comes in with 2.7), so that falls over at runtime with the section commented out.<br>
- There's a circular import between zmq/core/socket and zmq/core/context, which goes into endless recursion when trying to import either of them in Python 3.<br><br><a href="http://github.com/takowl/pyzmq/tree/new-py3zmq">http://github.com/takowl/pyzmq/tree/new-py3zmq</a><br>
<br>Thanks,<br>Thomas<br></div></div><br>