Re: [Twisted-Python] Phasing out old-style classes

2009-10-24 Thread Glyph Lefkowitz
On Oct 25, 2009, at 1:50 AM, James Y Knight wrote: On Oct 25, 2009, at 1:38 AM, Glyph Lefkowitz wrote: What do you do? Well, the obvious upgrade path here is to make a class which (A) inherits from "Library" to get Twisted functionality and (B) inherits from "object" to get new-style- ness

Re: [Twisted-Python] Phasing out old-style classes

2009-10-24 Thread James Y Knight
On Oct 25, 2009, at 1:38 AM, Glyph Lefkowitz wrote: What do you do? Well, the obvious upgrade path here is to make a class which (A) inherits from "Library" to get Twisted functionality and (B) inherits from "object" to get new-style-ness. So you go ahead and write: # in your application

Re: [Twisted-Python] Phasing out old-style classes

2009-10-24 Thread Glyph Lefkowitz
On Oct 24, 2009, at 10:50 AM, exar...@twistedmatrix.com wrote: I think that we should consider requests to make specific classes new- style (and grant them when doing so won't cause compatibility problems), make all new classes new-style, but otherwise leave this alone until 3.x is widely a

Re: [Twisted-Python] Twisted Performance

2009-10-24 Thread Glyph Lefkowitz
On Oct 24, 2009, at 3:47 PM, Daniel Griffin wrote: > I ported my thread based socket code to twisted and have been happy > with my results. (...) > Basically its a huge win on every level. > > Thanks for all the help everyone. Glad to hear it! Do you want to write up something more specific fo

[Twisted-Python] Weekly Bug Summary

2009-10-24 Thread exarkun
Bug summary __ Summary for 2009-10-18 through 2009-10-25 Bugs opened: 2Bugs closed: 1 Total open bugs: 1183 (+1) |== Type Changes |== Priority Changes |== Component Changes |Defect: +1 |Normal: +1 |Mail: +1 |Enhancement: +1

Re: [Twisted-Python] Handeling unresolved DNS queries?

2009-10-24 Thread Jesper Taxbøl
Im looking at the common.py and I feel a bit confused about how to wrap a resolver. Would'nt a subclass achieve the same thing. I would only need to implement the changed functions in the subclass. I guess my problem is that I dont exactly know how to write a wrapper in python. Kind regards Tax

Re: [Twisted-Python] Twisted Performance

2009-10-24 Thread Daniel Griffin
Hi everyone, I ported my thread based socket code to twisted and have been happy with my results. To re-hash, my code creates a connection then waits for the other end to do something and respond, each connection takes a different amount of time. I went from 3-5 connections completed per second to

Re: [Twisted-Python] Phasing out old-style classes

2009-10-24 Thread exarkun
On 02:39 pm, k.kelly.gor...@gmail.com wrote: >On Thu Oct 8 20:08:12 EDT 2009, Glyph Lefkowitz twistedmatrix.com> wrote: >>On Thu, Oct 8, 2009 at 7:59 PM, Mark Visser >>wrote: >> >> > I've been bitten a couple times by twisted's use of old-style >>classes. >> > Now that Jython is finally off the

[Twisted-Python] Phasing out old-style classes

2009-10-24 Thread Kelly
On Thu Oct 8 20:08:12 EDT 2009, Glyph Lefkowitz wrote: > On Thu, Oct 8, 2009 at 7:59 PM, Mark Visser wrote: > > > I've been bitten a couple times by twisted's use of old-style classes. > > Now that Jython is finally off the 2.2 branch, is there any real reason > > to stay backwards compatible? >