[Twisted-Python] How to combine two eventloops into one?

2018-05-21 Thread Shiyao MA
Hi, We are developing a network-facing GUI software. One team member builds the GUI software, which is based on PyQT and the eventloop is qt5reactor. Another team member writes the network functions, which is based on the https://github.com/bmuller/kademlia repo. Again, our code is built upon t

Re: [Twisted-Python] How to show traceback of "Unhandled error"?

2018-05-18 Thread Shiyao MA
on this issue: > > https://twistedmatrix.com/trac/ticket/9333 > > The associated PR needs a careful review to ensure its handling of unicode is > correct. Any takers? > > On Fri, May 18, 2018, at 1:56 AM, Shiyao MA wrote: >> Hi, >> >> Running the f

[Twisted-Python] How to show traceback of "Unhandled error"?

2018-05-18 Thread Shiyao MA
Hi, Running the following script prints "Unhandled Error", but doesn't contain the traceback of where the exception is raised. In a massive codebase, it's hard to locate where is the malfunctioning code is. from twisted.internet.defer import Deferred def raiseErr(what): raise Exception(wha

Re: [Twisted-Python] What's the difference between Port and Interface

2014-04-19 Thread Shiyao Ma
Oops. My bad. Sorry for posting here. 2014-04-20 14:15 GMT+08:00 Shiyao Ma : > Hi. > It seems a port can contain multiple interface. In real network, is there > a Port? > What is port for and what's the corresponding object in real switch? > > > Thanks. >

[Twisted-Python] What's the difference between Port and Interface

2014-04-19 Thread Shiyao Ma
Hi. It seems a port can contain multiple interface. In real network, is there a Port? What is port for and what's the corresponding object in real switch? Thanks. -- 吾輩は猫である。ホームーページはhttp://introo.me。 ___ Twisted-Python mailing list Twisted-Python@twi

Re: [Twisted-Python] Switiching to Formal Parser.

2013-06-21 Thread Shiyao Ma
I've come across some problems in parsley. One problem is that dns lables has a compression scheme "11offset". I dunno how to jump back to the parsed data to get the labels. On Thu, Jun 20, 2013 at 8:39 PM, Shiyao Ma wrote: > My original plan, as suggested by exarkun

Re: [Twisted-Python] Switiching to Formal Parser.

2013-06-20 Thread Shiyao Ma
My original plan, as suggested by exarkun, is to start with something easy to implement like netstring and then move on to advanced ones. But after today's video chat with tom and dash, I will begin by rewriting the Message.decode/encode part inside names.dns. The expected outcome, I think, is to t

[Twisted-Python] Switiching to Formal Parser.

2013-06-19 Thread Shiyao Ma
Hi. All. I am a gsoc participant this year, working on switching to formal parser. This is really an experiment to test whether parsley suits the needs or not. Tomprince and dash had a talk with me just now and we decided to start rewriting the twisted.names.dns first. A new git repo has been made:

Re: [Twisted-Python] Twisted Web documentation out of date

2013-05-10 Thread Shiyao Ma
Yep, I am interested in that. But I am busy doing my graduation project and writing my thesis all throughout May(School here hasn't ended yet). I may pitch in in summer when I have a bunch of free time. On Sat, May 11, 2013 at 3:35 AM, Glyph wrote: > > On May 10, 2013, at 5:42 AM

Re: [Twisted-Python] Twisted Web documentation out of date

2013-05-10 Thread Shiyao Ma
http://twistedmatrix.com/trac/ticket/6503 On Fri, May 10, 2013 at 11:57 AM, Glyph wrote: > > On May 9, 2013, at 7:44 PM, Shiyao Ma wrote: > > > If I remember clearly, I already fired a ticket about this issue a week > ago and it's waiting for review. > > Do you

Re: [Twisted-Python] Twisted Web documentation out of date

2013-05-09 Thread Shiyao Ma
If I remember clearly, I already fired a ticket about this issue a week ago and it's waiting for review. On Mon, May 6, 2013 at 11:31 PM, Itamar Turner-Trauring < ita...@futurefoundries.com> wrote: > Thanks for reporting this; could you file a bug at > http://twistedmatrix.com/trac/? > > ___