Hi
I don't see any reason to use defer.inlineCallbacks in your snippet of
codes.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
e enhancements today!
>
> Thanks for using Twisted,
>
> -glyph
>
> [1]: somewhat belatedly: it came out 10 days ago. Oops!
>
>
https://twistedmatrix.com/trac/ticket/5562
I think the recent iocp patch might fix this bug.
regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Hi
If your purpose is merely not to block the reactor, you can run your
code in a separate thread by using deferToThread. If you want to benefit
from multi cores, you may consider use https://github.com/twisted/ampoule
or other similar tools.
Regards
gelin yan
Mark
You mentioned deferToThreadPool. I am curious whether the standard
threadpool in multipleprocessing.dummy works with twisted.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Sun, Mar 27, 2016 at 10:50 AM, Tristan Seligmann wrote:
> On Sun, 27 Mar 2016 at 04:17 Gelin Yan wrote:
>
>>
>>
>> https://twistedmatrix.com/documents/16.0.0/api/twisted.application.internet.ClientService.html
>>
>
> Unfortunately ClientService did no
.
I want to know its availability.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Sun, Nov 15, 2015 at 8:25 PM, Gelin Yan wrote:
>
> 2015年11月15日 下午6:09,"Tobias Oberstein" 写道:
> >>
> > What's required for high-performance on Windows is the Twisted IOCP
> reactor. For Python 2 that works quite well. For Python 3 some bits are
> mis
x27;t make any sense
for that.
regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>>>
>>>
Hi Tobias
Have you tried to test crossbar on windows? I heard that stdio performs
very bad on windows. I noticed crossbar use pipe to transfer data between
process.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
t; We've been very satisfied with how MongoDB has performed (post 3.0/WT)
> along with TxMongo and Twisted.
>
> Cheers,
> Bret
>
>
I have switched from pymongo to txmongo for about two months. I got at
least 2x faster on query. Despite of
On Tue, Sep 8, 2015 at 3:16 PM, Glyph wrote:
>
>
> On Sep 7, 2015, at 11:48 PM, Gelin Yan wrote:
>
> Hi All
>
> I just noticed my app raised an exception such as
>
> Traceback (most recent call last):
>
> File "/home/m/py343/lib/python3.4/runpy.p
lf)
File
"/home/m/py343/lib/python3.4/site-packages/twisted/python/logfile.py", line
75, in _openFile
self._file = file(self.path, "w+", 1)
NameError: name 'file' is not defined
I used python 3.4 and twisted 15.40 (from pip) under ubuntu 14.04.
On Tue, Jul 28, 2015 at 3:46 PM, Tristan Seligmann
wrote:
> On Mon, 27 Jul 2015 at 13:18 Gelin Yan wrote:
>
>> Is it a bug?
>>
>
> Yes; see https://twistedmatrix.com/trac/ticket/7626 for more details.
>
> ___
> Twis
n = open
can run the program.
Is it a bug?
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
; to 'supported'.
>
> - Hawkie
>
>
>
>
>
Hi HawkOwl
May I know what level does twisted support for python 3? I am
interested in porting my system to python 3. To be frank, Twisted is the
main reason I am staying with python 2.x.
Regards
gelin yan
__
On Mon, Apr 27, 2015 at 3:22 PM, bret curtis wrote:
>
>
> On Fri, Apr 24, 2015 at 10:54 AM, Gelin Yan wrote:
>>
>> Hi Glyph
>>
>> off-topic a bit. I care about txmongo. I actually plan to use it in
>> production soon.
>>
>> Regards
&g
>
> -glyph
>
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
Hi Glyph
off-topic a bit. I care about txmongo. I actually pla
On Tue, Dec 30, 2014 at 5:50 PM, bret curtis wrote:
> On Tue, Dec 23, 2014 at 7:51 AM, Gelin Yan wrote:
>
>>
>>
>> On Mon, Dec 22, 2014 at 5:05 AM, Clayton Daley
>> wrote:
>>
>>> Are there any major disadvantages of using pymongo with callInThr
asier
> to maintain feature parity using callInThread.
>
> Clayton Daley
>
>
>
Hi Clayton
Txmongo has been inactive for a while so I suggest using pymongo &
twisted thread pool. I have been using them for a couple of years and
client, the server recognizes a disconnect, but before, no
> disconnect is recognized.
> Has anyone of you an idea or does anyone see a mistake in the design of my
> Factory or Protocol?
> Are there known problems with the combination of python twisted and
> WinSocket of Windows?
on import _epoll
>
>
> From: twisted-python-boun...@twistedmatrix.com
> [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of Gelin Yan
> Sent: Tuesday, May 28, 2013 9:09 PM
> To: Twisted general discussion
> Subject: Re: [Twisted-Python] any progress for Ticket #6346,
ckets.
>
> -Itamar
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
Hi Itamar
I will give it a try without guarantee due to I am not qu
tion where it happens
> infrequently is actually Twisted 10.2 with python 2.7.3 (not Twisted 10.1
> as
> I wrote).
> How can I check whether twisted is using Python’s epoll or its own in this
> combination? And how can I switch between epoll implementations in my app?
>
&g
works, please take a look
> at this wiki page:
>
> http://twistedmatrix.com/trac/wiki/ReviewProcess
>
> Jean-Paul
> > By reading these comments, It looks like recent version of twisted
> >may
> >suffer from this pro
use the latest version on windows.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
hon mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
Hi
I suggest trying pypy. python actually is quite slow with lots of
function calls. I did have a benchmark for cyclone & pypy. it is almost 3
times faster. twisted can work with pypy well so you definitely should give
it a try.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
ython mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
Hi
inlineCallbacks is ok to me. I use it daily. I can keep code snippets
succinct. no more callbacks, deep nested callbacks (they let me recall
those days with javascript & nod
;
> Is there a patch available, or should I roll back to 10.0.0?
>
>
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
Hi All
I re
wistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
Hi All
It looks like a serious bug, what is the work around besides of
checking stuck state regularly?.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Mon, Feb 25, 2013 at 5:15 PM, Sergey Gerasimov wrote:
> ** **
>
> ** **
>
> *From:* Itamar Turner-Trauring [mailto:ita...@futurefoundries.com]
> *Sent:* Monday, February 25, 2013 4:38 AM
> *To:* ser...@gmail.com; Twisted general discussion
> *Subject:* Re: [Twisted-Python] combine local and re
m/cgi-bin/mailman/listinfo/twisted-python
>
>
Hi
Ampoule is a very good tool for parallel computing, The only drawback I
found is cx_freeze can't support it. I personally hope this "own simplified
process pool" eventually can work with cx_freeze flawlessly.
Rega
g of urgent need for every Twisted-using
> program that needs to schedule timed events.
> --
> mithrandi, i Ainil en-Balandor, a faer Ambar
>
> _______
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twist
for
>> problems related to #2424 to ever come up on a properly maintained
>> server.
>>
>>
> I think that for *certain* uncommon types of applications, even the very
> minor skewing of ntp can cause problems, but I wonder if gelin yan has
> encountered real
d-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Hi Jean-Paul
Thanks for your answer. It is much clearer from now.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
ocess,
sync the time manually and then restart the process. The latter way is hard
to be accepted due to we have many machines.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/lis
o for self.stopWriting()?
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Thu, Oct 25, 2012 at 1:03 PM, Glyph wrote:
>
> On Oct 24, 2012, at 8:48 PM, gelin yan wrote:
>
> I attach a modified abstract.py here. You may put it in
> Path\twisted\internet\iocpreactor
> and give it a try.
>
>
> Hi Gelin,
>
> Can you generate and att
On Mon, Oct 22, 2012 at 12:06 PM, Glyph wrote:
>
> On Oct 20, 2012, at 7:56 PM, gelin yan wrote:
>
> "A pending operation is indicated when the function that started the
> operation returns *FALSE*, and the
> *GetLastError*<http://msdn.microsoft.com/en-us/library/win
sign the mechanism
> to wire up event-source to fire the deferred and make doWrite be the
> callback.
> >
> > On Oct 20, 2012, at 8:29:10AM, gelin yan wrote:
> >
> >> Hi All
> >>
> >> A few months ago, I reported a bug about IOCP. Last night I spent
&
ass.
Maybe the better solution is to find a way to poll the complete port status
when read/write will be recovered from IO PENDING. Simply wait a little is
risky.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
h
pwards unchanged (maybe
> wrapped, maybe not)
>
> cp_reconnect should be the default.
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
on
>
Hi
Actually, you can use VS 2010 with python but you need to modify sth.
deploying python app (not only with twisted) on windows is troublesome.
Sometimes, I have to manually download .msi files and execute it order by
order. I am sure that 99% of windows servers don't have a working compiler
no matter it is "free" or not.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Sun, Jul 15, 2012 at 1:38 AM, Werner Thie wrote:
> On 7/14/12 12:39 AM, gelin yan wrote:
> >
> >
> > On Wed, Jul 11, 2012 at 2:08 AM, Werner Thie > <mailto:wer...@thieprojects.ch>> wrote:
> >
> > On 7/10/12 6:17 AM, Laurens Van Houtven wr
>>> Augusto Mecking Caringi
> We observed really great scaling on multi cores with moving the
> application part either to ampoule for PDF production or in the other
> case I wrote an implementation of self regulating process pool based on
> spread, leaving only the servin
have an errback handler attached to it. If you don't want to see anything
> out of them, simply don't print anything.
> >
> >> ___
> >> Twisted-Python mailing list
> >> Twisted-Python@twistedmatrix.com
>
/twisted-python
>
Sigh too, I am still using 2.6.6 & twisted 11.0; however I think it is not
so difficult to migrate to 2.7.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Thu, Jun 14, 2012 at 7:38 PM, Martin wrote:
> Hi, thanks for your reply.
>
> Indeed, the ReconnectingClientFactory is being sent the Failure object to
>
> def clientConnectionLost(self, connector, reason):
> log.msg('Lost connection. Reason: %s' % reason)
> protocol.Reconnecti
-python
>
>
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
Hi Andrew
What is the advantage of using stackless with twisted?
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Thu, May 3, 2012 at 3:22 AM, Itamar Turner-Trauring
wrote:
> On 05/02/2012 02:57 PM, Glyph wrote:
>
> On May 2, 2012, at 12:37 AM, Itamar Turner-Trauring wrote:
>
> a bunch of serious bugs
>
>
> Can you be more specific? Let's not spread vague FUD about ourselves :).
>
> I suspect you're mo
d-python
>
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
Hi
you may look at http://docs.python.org/library/profile.html for some
details.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Tue, Apr 10, 2012 at 1:32 PM, Glyph Lefkowitz wrote:
>
> On Apr 9, 2012, at 9:50 PM, Andrew Bennetts wrote:
>
> > On Tue, Apr 10, 2012 at 12:41:17PM +0800, gelin yan wrote:
> > […]
> >>When trying to run inlineCallbacks with Cython, a TypeEr
On Fri, Apr 13, 2012 at 9:48 PM, Duncan McGreggor <
duncan.mcgreg...@gmail.com> wrote:
> On Fri, Apr 6, 2012 at 2:41 AM, gelin yan wrote:
> >
> >
> > On Thu, Apr 5, 2012 at 9:34 PM, Duncan McGreggor
> > wrote:
> >>
> >> Just thought I'
On Tue, Apr 10, 2012 at 12:50 PM, Andrew Bennetts wrote:
> On Tue, Apr 10, 2012 at 12:41:17PM +0800, gelin yan wrote:
> […]
> > When trying to run inlineCallbacks with Cython, a TypeError would
> come
> > out like:
> >
> > TypeError: inlineCallbacks req
On Tue, Apr 10, 2012 at 4:01 AM, Glyph Lefkowitz wrote:
> On Apr 9, 2012, at 3:05 AM, gelin yan wrote:
>
> I personally hope deferredGenerator will be always there even python 2.4
> support has been abandoned. deferredGenerator itself is not so elegant as
> inlineCallbacks, at lea
s
inlineCallbacks, at least I don't need
to struggle with a series of callback functions..
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
glad to know that cool thing... Is it possible to leak out more detail? how
these people use twisted? Thanks
gelin yan
__
crash or data
corruption with Failure.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Fri, Mar 16, 2012 at 12:25 AM, wrote:
> On 06:33 am, dynami...@gmail.com wrote:
> >On Wed, Mar 14, 2012 at 10:04 PM, gelin yan
> >wrote:
> >>Hi all
> >>
> >> I attach two files for this problem. When i used iocp reactor with
> >>
d-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
> Hi...If you log chunks data at once,, it definitely will chock your
reactor. I suggest split your data and log by using cooperate.
Regards
gelin yan
__
On Wed, Mar 14, 2012 at 10:04 PM, gelin yan wrote:
> Hi all
>
> I attach two files for this problem. When i used iocp reactor with pb,
> I noticed once the remote method returned a deferred object, the client app
> would raise many exceptions..kinda weird.
>
> It is o
select reactor, everything was
fine..I am not sure whether it is a bug on IOCP.
OS: windows 7 64 bit
py: 2.6.6 32bit
twisted version: 12.0.0
Regards
gelin yan
pb_bugs_client.py
Description: Binary data
pb_bugs_server.py
Description: Binary data
On Fri, Mar 9, 2012 at 2:00 AM, Corbin Simpson wrote:
> Off the top of my head, multiprocessing.freeze_support() might help. I
> wonder if dialtone is on this list, he might know more.
>
> ~ C.
>
> On Thu, Mar 8, 2012 at 11:36 PM, gelin yan wrote:
> > Hi All
> >
&
27; object has no attribute __file__.
I guess once the main file is tuned into the executable one, __file__ will
be removed. It looks like ampoule need this attribute.
Any idea?
Thanks
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedm
On Mon, Feb 20, 2012 at 12:14 PM, Itamar Turner-Trauring <
ita...@itamarst.org> wrote:
> On 02/19/2012 11:49 AM, Zoran Bošnjak wrote:
> > Hello all,
> > I was astonished to find out that looping call period depends on the
> system time by default. The periodic tick can even stall for a long time,
On Sun, Feb 12, 2012 at 7:10 PM, Phil Mayers wrote:
> On 02/12/2012 04:13 AM, Donal McMullan wrote:
> > I'm trying to integrate Twisted with libusb-1
> >
> > The libusb-1 Python wrapper offers a USBPoller class to "allow
> > integration of USB event polling in a file-descriptor monitoring event
>
On Sun, Jan 29, 2012 at 9:48 AM, Peng Xiao -X (penxiao - Digital China at
Cisco) wrote:
> Hi experts
>
> ** **
>
> I want to establish a connection between my twisted client and an IPv6
> server, how can I achieve that?
>
> Which version of Twisted should I use?
>
> ** **
>
> I know
Hi Tom
Does it work for windows? I use ampoule instead to manage multiple
process.
Regards
gelin yan
On Sat, Jan 21, 2012 at 12:09 AM, Nicolas Toper wrote:
> Hi Tom,
>
> How do you pass data between the parent and its children with
> multiprocessing? It worked fine with Twis
.
thanks
gelin yan
On Mon, Nov 21, 2011 at 4:39 PM, Corbin Simpson
wrote:
> On Sun, Nov 20, 2011 at 11:40 PM, gelin yan wrote:
> > Hi glyph
> > I attached a file for this purpose. there is a number 4073 inside
> the
> > code. when i use any smaller value, the f
If pypy doesn't work well with cython, it implies we can't use iocp for
that.
On Mon, Nov 21, 2011 at 6:57 PM, Laurens Van Houtven <_...@lvh.cc> wrote:
> I tried once, and then I submitted a ticket, because a Cython extension
> was preventing a complete install.
>
help.
Regards
gelin yan
On Mon, Nov 21, 2011 at 7:02 PM, Žiga Seilnacht wrote:
> On 21.11.2011 8:40, gelin yan wrote:
> > Hi glyph
> >
> > I attached a file for this purpose. there is a number 4073 inside
> the
> > code. when i use any smaller value, the func
Hi glyph
I attached a file for this purpose. there is a number 4073 inside the
code. when i use any smaller value, the function return a correct result. I
use win 7 & twisted 11.1 at the moment. I am not sure whether this limit
comes from os or not.
thanks
gelin yan
On Mon, Nov 21,
Hi Romanoff
Have you suffered from transfer large size of data to child process? I
encountered a problem: it seems i am unable to send any chunks of data
larger than 4000 bytes. I guess there is a limit.
On Sat, Nov 19, 2011 at 3:58 AM, Romanoff Alexei wrote:
> 2011/11/18 gelin
looks like
quite serious for example: a bug mentioned occasionally, startWorker may
generate double process until the system hanging.
If those bugs still exist, i am gonna try to fix some of them if it is
impossible.
Regards
GELIN YAN
___
Twisted-Python
placing in Github is almost a must for attracting developers...
At least, it is easy to check the codes...
On Mon, Nov 14, 2011 at 4:43 PM, Tobias Oberstein <
tobias.oberst...@tavendo.de> wrote:
> > But the whole point of having a Git mirror (and a presence on Github,
> which I think is the next
Hi all
I want to know which version of twisted will be supposed to support
IPv6...
Thanks
On Tue, Nov 1, 2011 at 7:41 PM, Phil Mayers wrote:
> On 01/11/11 11:34, nivedita datta wrote:
> > Hi all,
> >
> > I have to give a talk on twisted. Can anyone let me know about the
> > limitations of tw
any tutorial for how to be a release manager?
On Tue, Oct 18, 2011 at 3:35 AM, Itamar Turner-Trauring wrote:
> Twisted is basically at a point where a new version can be released...
> given a release manager. I'm told it's pretty automated and only takes 45
> minutes or so these days.
>
> Any vo
hi...
you can try to use host to indicate which server you want to connect
with.. like:
adbapi.ConnectionPool('xxx', host='localhost', user='twww',pwd='eee')
On Wed, Jul 13, 2011 at 9:08 AM, bino oetomo wrote:
> Dear All ..
>
> Base on a need, I need to build a JSON-RPC to Postgres "bridge"
and I didn't
find any hint from source code.
Thanks
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
.
Other solutions like gevent, eventlet or etc usually are unable to run on
windows.
Regards
gelin yan
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
? Or I use
reacator.callFromThread for all related methods from threads other than
reactor thread?
Thanks
dfgqq (gelin yan)
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
80 matches
Mail list logo