Re: [Twisted-Python] A few simple questions

2012-07-18 Thread Itamar Turner-Trauring
On 07/18/2012 01:31 PM, Russell E. Owen wrote: > If there is a "best practices for error handling" document I'd love to > read it. I found an overview of deferreds that was helpful. It pointed > out that addCallbacks is not the same as addCallback followed by > addErrback and I'm not sure I'm handl

Re: [Twisted-Python] A few simple questions

2012-07-18 Thread Naveen Michaud-Agrawal
If you haven't seen it already, Dave Peticolas has a great introduction to twisted (it's a bit long, but well worth it) at http://krondo.com/?page_id=1327. In particular, until I saw this graphic on callback/errback chaining ( http://krondo.com/blog/wp-content/uploads/2009/10/deferred-2.png), I nev

Re: [Twisted-Python] A few simple questions

2012-07-18 Thread Russell E. Owen
In article , Glyph wrote: > On Jul 17, 2012, at 9:25 AM, Russell E. Owen wrote: > > >> Can you elaborate on the case? > > > > I've found that Twisted sometimes swallows errors unless I am extremely > > careful. I would like to be able to check a protocol to make sure it is > > operational (

Re: [Twisted-Python] A few simple questions

2012-07-17 Thread exarkun
On 04:25 pm, ro...@uw.edu wrote: >In article >, >Laurens Van Houtven <_...@lvh.cc> wrote: >>On Thursday, July 12, 2012, Russell E. Owen wrote: >> >> > I'm adding Twisted support to some existing communication code and I >> > have a few questions which I hope are simple. I've been reading the >>API

Re: [Twisted-Python] A few simple questions

2012-07-17 Thread Glyph
On Jul 17, 2012, at 9:25 AM, Russell E. Owen wrote: >> Can you elaborate on the case? > > I've found that Twisted sometimes swallows errors unless I am extremely > careful. I would like to be able to check a protocol to make sure it is > operational (connected and happy) as a means of assurin

Re: [Twisted-Python] A few simple questions

2012-07-17 Thread Russell E. Owen
In article , Laurens Van Houtven <_...@lvh.cc> wrote: > On Thursday, July 12, 2012, Russell E. Owen wrote: > > > I'm adding Twisted support to some existing communication code and I > > have a few questions which I hope are simple. I've been reading the API > > documentation, but if the answers

Re: [Twisted-Python] A few simple questions

2012-07-12 Thread exarkun
On 04:02 pm, _...@lvh.cc wrote: >On Thursday, July 12, 2012, Russell E. Owen wrote: >>I'm adding Twisted support to some existing communication code and I >>have a few questions which I hope are simple. I've been reading the >>API >>documentation, but if the answers are there I'm missing them. >>

Re: [Twisted-Python] A few simple questions

2012-07-12 Thread Laurens Van Houtven
On Thursday, July 12, 2012, Russell E. Owen wrote: > I'm adding Twisted support to some existing communication code and I > have a few questions which I hope are simple. I've been reading the API > documentation, but if the answers are there I'm missing them. > > What happens if one tries to write

[Twisted-Python] A few simple questions

2012-07-12 Thread Russell E. Owen
I'm adding Twisted support to some existing communication code and I have a few questions which I hope are simple. I've been reading the API documentation, but if the answers are there I'm missing them. What happens if one tries to write to a protocol.transport that is not connected or in an er