Re: [Twisted-Python] Problem with installing twisted 13.0 with Python 2.7 on 64 bit Win 7

2013-06-18 Thread Thomas Hervé
On Tue, Jun 18, 2013 at 8:12 AM, Weikai (Victor) Xie wrote: > Hi, folks, > > I was trying to install twisted 13.0 on my 64 bit win 7 but get some > strange problem - there is no sub-packages available under twisted! > > Here is a screen copy: > > Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC

Re: [Twisted-Python] Problem with installing twisted 13.0 with Python 2.7 on 64 bit Win 7

2013-06-18 Thread Tim Allen
On Tue, Jun 18, 2013 at 04:12:17PM +1000, Weikai (Victor) Xie wrote: > >>> import twisted > >>> twisted.web > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'module' object has no attribute 'web' I believe that's just how packages work in Python. On a Linux machine I

[Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread zhang kai
If I cancel a Deferred, the errbacks of the Deferred are not called with CancelledError but with other errors like ConnectionDone, is this acceptable? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailma

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Itamar Turner-Trauring
By way of background, Kai Zhang is one of our GSoC interns, working on adding Deferred cancellation support to Twisted. I believe the specific module he is working on is the POP3 client, but it's a general question - should we try to keep CancelledError percolating all the way to the top of callbac

Re: [Twisted-Python] logging

2013-06-18 Thread Peter Westlake
On Tue, Jun 18, 2013, at 4:50, Glyph wrote: > On Jun 17, 2013, at 5:48 PM, James Y Knight wrote: ... > > And having a logging system which doesn't even support a basic > > log level is just silly. Hopefully the new system can at least > > have that. > > The new system being proposed does have log

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Christopher Armstrong
On Tue, Jun 18, 2013 at 8:37 AM, Itamar Turner-Trauring < ita...@futurefoundries.com> wrote: > By way of background, Kai Zhang is one of our GSoC interns, working on > adding Deferred cancellation support to Twisted. I believe the specific > module he is working on is the POP3 client, but it's a g

Re: [Twisted-Python] logging

2013-06-18 Thread Glyph
On Jun 18, 2013, at 8:25 AM, Peter Westlake wrote: > On Tue, Jun 18, 2013, at 4:50, Glyph wrote: >> On Jun 17, 2013, at 5:48 PM, James Y Knight wrote: > ... >>> And having a logging system which doesn't even support a basic >>> log level is just silly. Hopefully the new system can at least >>>

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Glyph
On Jun 18, 2013, at 8:42 AM, Christopher Armstrong wrote: > On Tue, Jun 18, 2013 at 8:37 AM, Itamar Turner-Trauring > wrote: > By way of background, Kai Zhang is one of our GSoC interns, working on adding > Deferred cancellation support to Twisted. I believe the specific module he is > work

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Laurens Van Houtven
On Tue, Jun 18, 2013 at 8:22 PM, Glyph wrote: > I would say that if we want to percolate this information up to the > caller, there should be a ConnectingCancelled exception that is a subtype > of the previous exception type. > Doesn't that mean we'll have many subclasses that mean that somethin

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Glyph
On Jun 18, 2013, at 12:03 PM, Laurens Van Houtven <_...@lvh.io> wrote: > On Tue, Jun 18, 2013 at 8:22 PM, Glyph wrote: > I would say that if we want to percolate this information up to the caller, > there should be a ConnectingCancelled exception that is a subtype of the > previous exception t

Re: [Twisted-Python] logging

2013-06-18 Thread Mikhail Terekhov
On Mon, Jun 17, 2013 at 11:50 PM, Glyph wrote: > On Jun 17, 2013, at 5:48 PM, James Y Knight wrote: > > And having a logging system which doesn't even support a basic log level > is just silly. Hopefully the new system can at least have that. > > +1 > The new system being proposed does have lo

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Itamar Turner-Trauring
On 06/18/2013 02:22 PM, Glyph wrote: Making an API that previously documented raising (or failing) exception types A, B, and C raise (or fail with) D is not necessarily a compatible change. Making it raise (or fail with) A' (a subclass of A) is, though. The API for pop3client does *not* docu

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Glyph
On Jun 18, 2013, at 2:13 PM, Itamar Turner-Trauring wrote: > On 06/18/2013 02:22 PM, Glyph wrote: >> Making an API that previously documented raising (or failing) exception >> types A, B, and C raise (or fail with) D is not necessarily a compatible >> change. Making it raise (or fail with) A'

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Terry Jones
First off, +1 on propagating the CancelledError failure (or something even more specific) all the way back up the errback chain. lvh> Personally, I think it's enough of a change in functionality to warrant a chance in ways a function can fail I'm not sure what change in functionality you mean. De

Re: [Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

2013-06-18 Thread Itamar Turner-Trauring
On 06/18/2013 05:24 PM, Glyph wrote: Hrm. I would say that if you don't document exceptions, then you just have to support whatever your behavior was before :). http://twistedmatrix.com/trac/wiki/CompatibilityPolicy does not explore this issue, though. The many possible options in this ca