You can execute blocking call at any time of your pleasing. It will
predictable block all execution paths. Typical wrapper around blocking calls
is thread. Something like this (from
http://twistedmatrix.com/documents/current/core/howto/threading.html):
d = threads.deferToThread(yourSyncCall)
d.add
Thanks! The main reason for the question, though, is just curiosity from
playing with and learning the Twisted API, not necessarily getting the
example working :)
A more direct question would have been - is there a Twisted reactor which
provides a blocking call instead of a callback? Is there an a
Hello Andrey,
May I recommend you to look at Twisted Words? There are plenty of IRC
tools there.
Regards,
Alex
2010/4/21 Andrey Fedorov :
> I'm trying to write a dead-simple interface for an IRC client library, like
> so:
> import simpleirc
> connection = simpleirc.Connect('irc.freenode.
Hi Jason,
I was up for revamping the front page until school hit, but in about a month
I'll be back and ready for action and happy to help with this / provide
feedback. You might find this IRC snippet about the front page relevant:
21:27 < jesstess> exarkun: so you're saying "Want an IRC bot? BAM
> If it's of any use, someone started trying to do this, and got at least
> as far as deleting all of the front page content:
>
> http://twistedmatrix.com/trac/wiki/TestFrontPage
Awesome.
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.
On 01:32 am, kevin.h...@gmail.com wrote:
>On Wed, Apr 21, 2010 at 7:53 PM, Jason J. W. Williams <
>jasonjwwilli...@gmail.com> wrote:
>>
>>I'd say the biggest barrier to entry is the documentation. And let's
>>face it...there's no reason Twisted shouldn't be used by more folks.
>>It's great...but le
On 12:53 am, jasonjwwilli...@gmail.com wrote:
>I guess I am. :)
>
>I'm going to start with the front page...and then I'm going to write
>some articles on my blog that are what I wanted when I was learning
>Twisted. Hopefully, they'll be of use to someone.
If it's of any use, someone started trying
I'm trying to write a dead-simple interface for an IRC client library, like
so:
import simpleirc
connection = simpleirc.Connect('irc.freenode.net', 6667)
channel = connection.join('foo')
find_command = re.compile(r'google ([a-z]+)').findall
for msg in channel:
for t
On 12:53 am, jasonjwwilli...@gmail.com wrote:
>I guess I am. :)
And thanks for doing so! I'm really looking forward to the results.
>2.) Tornado's performance from the the benchmarks I've read is only
>between 15% and 30% better than twisted.web.
This is totally a tangent, and I hope no one feel
+1 Yes, it's great!!
2010/4/21 Kevin Horn
> This blog series is also totally rock-a-licious.
>
> http://krondo.com/blog/?page_id=1327
>
--
http://celord.blogspot.com/
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedma
That looks pretty darn interesting.
-J
On Wed, Apr 21, 2010 at 7:30 PM, Kevin Horn wrote:
> This blog series is also totally rock-a-licious.
>
> http://krondo.com/blog/?page_id=1327
>
> Kevin Horn
>
> On Wed, Apr 21, 2010 at 8:22 PM, Jason J. W. Williams
> wrote:
>>
>> Naw...I meant what I wrot
On Wed, Apr 21, 2010 at 7:53 PM, Jason J. W. Williams <
jasonjwwilli...@gmail.com> wrote:
>
> I'd say the biggest barrier to entry is the documentation. And let's
> face it...there's no reason Twisted shouldn't be used by more folks.
> It's great...but learning it feels like a frat hazing. That's
This blog series is also totally rock-a-licious.
http://krondo.com/blog/?page_id=1327
Kevin Horn
On Wed, Apr 21, 2010 at 8:22 PM, Jason J. W. Williams <
jasonjwwilli...@gmail.com> wrote:
> Naw...I meant what I wrote. ;) exarkun's is great...it's web focused.
> I'll post to them to the list and
Naw...I meant what I wrote. ;) exarkun's is great...it's web focused.
I'll post to them to the list and y'all can see if its worthwhile.
-J
On Wed, Apr 21, 2010 at 7:05 PM, sstein...@gmail.com
wrote:
>
> On Apr 21, 2010, at 8:53 PM, Jason J. W. Williams wrote:
>>
>> But because I'm pretty comfor
On Apr 21, 2010, at 8:53 PM, Jason J. W. Williams wrote:
>
> But because I'm pretty comfortable with Twisted now...it makes more
> sense for me to write my own dispatcher that emulates Tornado's than
> give up all the rock-hard awesome
My spam filter almost killed you on that phrase. I think yo
I guess I am. :)
Honestly, we've used Twisted in my org for quite some time and until I
was forced to use it my view of it was colored by my infrequent
beatings by it and the derisive comments of the primary maintainer at
that time.
With the 4 hours I spent actually learning the concepts, Twisted
Much appreciated Glyph. I thought it would be a common problem.
Just didnt know which group to ask.
--- On Wed, 4/21/10, Glyph Lefkowitz wrote:
> From: Glyph Lefkowitz
> Subject: Re: [Twisted-Python] python and twisted and openssl
> To: "Twisted general discussion"
> Date: Wednesday, April 21
On Apr 21, 2010, at 2:47 PM, gary clark wrote:
> undefined symbol: PyUnicodeUCS2_Decode
> What is this PyUnicodeUCS2_Decode? Has anybody else seen this blighter?
When you build Python, you either build its Unicode support with support for
UCS2 (2-byte, 16-bit code points) or UCS4 (4-byte, 32-b
On Apr 20, 2010, at 7:06 PM, Jason J. W. Williams wrote:
> And yes I'm volunteering to reorg.
Wow, you really are a glutton for punishment, aren't you? :)
Go ahead and create an alternate front-page wiki page, and let the list know
when it's ready so we can pile on and critique.
I'm sure it w
Hey Guys,
I apologise in advance but this is is not the correct platform.
Essentially I'm porting my server to a new VPS and the platform is enough to
cause
me headaches to resurrect my twisted server.
I'm using open-ssl however I'm seeing mismatches:
[r...@1003100u6h1z pyOpenSSL-0.9]# python
Hi Jason,
Unfortunately I still have the same problem. However, I now realise
that it might be a privileges issue of some kind. Being fairly new at
linux this may take days to figure out; can you perhaps remember if
you enabled your rc script using the command update-rc.d? I used it in
the fo
You are correct Jean-Paul, it doesn't matter what
script I run using twistd, (i.e. twistd -y nothingwillrun.py) it
doesn't do anything anyway if executed during the boot sequence. So I
am going to have to start looking elsewhere. A nice little error in the
system logs would have been nice thoug
Thank you Jason, I am looking at it right now.
Regards,
Don
Jason J. W. Williams wrote:
Hi Don,
Here's the init.d we use for Twisted on Ubuntu. Sets the full path to Twistd:
http://gist.github.com/373978
-J
On Wed, Apr 21, 2010 at 5:38 AM, Don Schoeman wrote:
Hi guys,
My a
> I think Itamar was suggesting that you use "/bin/bash -x" as your init
> script interpreter and examine that output.
Actually, I typoed, and meant /usr/bin/strace, but that's a good idea too :)
___
Twisted-Python mailing list
Twisted-Python@twistedma
Hi Don,
Here's the init.d we use for Twisted on Ubuntu. Sets the full path to Twistd:
http://gist.github.com/373978
-J
On Wed, Apr 21, 2010 at 5:38 AM, Don Schoeman wrote:
> Hi guys,
>
> My application is being executed using twistd as per documentation. All is
> working fine but I need to hav
I think Itamar was suggesting that you use "/bin/bash -x" as your init
script interpreter and examine that output.
It may also make sense to find someone who knows about writing init
scripts for your platform and ask them some questions. It seems like
this is an issue with the environment arou
Using the --syslog switch it still produced no logs
whatsoever. I took it a step further and tried the --spew switch which
should dump huge amounts of log data (I am piping the output to a file)
- that produces nothing either. To be honest I think twistd starts up
and crashes solidly without be
On Wed, 2010-04-21 at 15:37 +0200, Don Schoeman wrote:
> I still get the same results (or non-results) unfortunately. I have
> tried the following options:
>
> 1) Tried running twistd by giving the fully qualified
> path: /usr/bin/twistd.
> 2) Tried running the .tac file together with the -g twist
I still get the same results (or non-results)
unfortunately. I have tried the following options:
1) Tried running twistd by giving the fully qualified path:
/usr/bin/twistd.
2) Tried running the .tac file together with the -g twistd switch
instead.
3) Tried the --syslog switch to see if I can
My understanding is the twistd will have a default log twistd.log.
Thanks,
Garyc
--- On Wed, 4/21/10, Don Schoeman wrote:
From: Don Schoeman
Subject: Re: [Twisted-Python] twistd and init.d
To: "Twisted general discussion"
Date: Wednesday, April 21, 2010, 7:54 AM
Sorry, I mean't to say I
Sorry, I mean't to say I will use the full path to
twistd (i.e. /usr/bin/twistd) and see if that works.
Don Schoeman wrote:
Thanks for the tips guys,
Maartin, I have a feeling that you may be correct. I'm going to see if
I can't set the python path within the script.
Tim, the only
Thanks for the tips guys,
Maartin, I have a feeling that you may be correct. I'm going to see if
I can't set the python path within the script.
Tim, the only reason I can see anything in /var/logs/messages is
because I use the "logger" tool to log those messages directly from the
bash shell
I have written an init.d script thats starts and stops a twistd. You need to
create a .tac file and create a daemon. A wee bit more tricky but you can start
twistd fine.
Thanks,
Garyc
--- On Wed, 4/21/10, Tim Allen wrote:
> From: Tim Allen
> Subject: Re: [Twisted-Python] twistd and init.d
>
On Wed, Apr 21, 2010 at 01:38:09PM +0200, Don Schoeman wrote:
>This works fine when running /etc/init.d/ghserver start and
>/etc/init.d/ghserver stop. The script also run when I boot since the
>logger actually logs the "GHServer: Starting" text to the
>/var/log/messages file. Howeve
On Wednesday 21 April 2010, Don Schoeman wrote:
> This works fine when running /etc/init.d/ghserver start and
> /etc/init.d/ghserver stop. The script also run when I boot since the
> logger actually logs the "GHServer: Starting" text to the
> /var/log/messages file. However, my service actually d
Hi guys,
My application is being executed using twistd as per documentation. All
is working fine but I need to have the service start automatically at
boot time.
So as a test I've created a script in /etc/init.d/ which looks like
this:
#! /bin/sh
### BEGIN INIT INFO
# Provides: ghse
36 matches
Mail list logo