[zeromq-dev] pyczmq and ctx.set_linger()
Goswin von Brederlow
goswin-v-b at web.de
Mon Jan 20 10:32:51 CET 2014
On Sat, Jan 18, 2014 at 07:17:31PM -0800, MinRK wrote:
> On Sat, Jan 18, 2014 at 2:29 AM, Goswin von Brederlow <goswin-v-b at web.de>wrote:
>
> > On Fri, Jan 17, 2014 at 09:34:29AM -0500, Greg Ward wrote:
> > > On 17 January 2014, Pieter Hintjens said:
> > > > On Thu, Jan 16, 2014 at 9:01 PM, Michel Pelletier
> > > > <pelletier.michel at gmail.com> wrote:
> > > >
> > > > > Yes, pyczmq is very much a literal 1 to 1 wrapper around the czmq C
> > > > > interface.
> > > > >
> > > > > Note that there is also an "object oriented" interface:
> > > >
> > > > CZMQ was designed to allow an OO interface on top; it may not succeed
> > > > in all classes. Where it's possible I'd probably not expose the 1-1
> > > > wrapper at all, and only provide the proper OO interface. (Less
> > > > confusing for users, maybe?)
> > >
> > > Having played around with pyczmq a little bit for a few hours, I'm
> > > starting to wonder if that's really the right way to wrap CZMQ. My two
> > > concerns are 1) import-time overhead and 2) the C-style interface (not
> > > OO, un-Pythonic).
> > >
> > > I note that pyzmq already solves both of these problems: it's much
> > > faster to import than pyczmq, and it exposes a nice Pythonic interface
> > > to the 0mq core API.
> > >
> > > Would it make sense for pyzmq to wrap CZMQ as well?
> > >
> > > Greg
> >
> > I've been using pyzmq and didn't even know pyczmq (or czmq) existed
> > because nothing was missing in pyzmq.
> >
> > But with zeromq 4.0 and CURVE there are parts that pyzmq lacks.
> > Notably the authentication and certificate functions. I think it would
> > be greate to have that added to pyzmq without requiring yet another
> > module. Either via czmq or simply reimplement it in native python.
> >
>
> Current (14.0) pyzmq supports all the security features in libzmq, but the
> extra convenience added by czmq (ZAP handlers, certificates etc.) are in
> pyzmq master via `zmq.auth`.
>
> -MinRK
>
>
> >
> > MfG
> > Goswin
Ah great. So I only didn't look hard enough. Great minds think alike.
MfG
Goswin
More information about the zeromq-dev
mailing list