Hello, I agree with that wholeheartedly. I typical code in 3 or 4 languages and the other languages I use (C#, Java, etc) just have threads which are easy to use. When I was told to use twisted I looked at the website and though 'phew that is a lot to learn'. I was then about to drop Python because I was worried that Python threading didn;t work properly (because I was told to not use threads in Python as it is too difficult). I persevered however and threads work fine in Python - OK the GIL can make things a little more complicated but threading in Python is not much harder to use then in Java or C# (in fact because of the GIL and single processor I don't have to worry about volatile variables). Twisted has clear and definite advantages but it is another framework I have to learn when I just want to pop up a GUI and have it responsive while a db call is running in the background. My needs are not as great as the twisted framework's learning hump.
Cheers, Neil On 5 July 2010 10:57, Jason Heeris <jason.hee...@gmail.com> wrote: > On 5 July 2010 17:36, A.T.Hofkamp <a.t.hofk...@tue.nl> wrote: > > Or you could drop threads entirely, and do your async activities using > the > > Twisted framework, designed for making asynchronous programs (where GTK > > event handling is just one of the asynchronous sources). > > Please don't take this as a flame, but I've had this advice before > (usually on #python), and I usually go through this process: > > 1. Look at Twisted website > 2. Only read things about twisted being a networking framework > 3. Someone corrects me, saying "Twisted is so much more!" (That may be > the case, but the fact that the website goes on and on without > mentioning this does not inspire confidence.) > 4. I search the Twisted website for documentation on/examples of GTK > applications > 5. I give up and search the Twisted website for documentation > on/examples of *any* non-network based applications > 6. I give up and search the greater web for documentation on/examples > of Twisted GTK applications > 7. I give up on Twisted and find another way. > > Really, I would love to get a grip on Twisted. It seems really useful. > But I've still not found any kind of stepping stone into it. Please, > please, please if you know of one, post it so I can add another tool > to my belt. I will rescind everything I've said here and then some. > > (Since the Twisted website is currently down, I can't tell if things > have changed and I should get over it and have another try.) > > Cheers, > Jason > _______________________________________________ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > -- -- Neil Benn Msc Director Ziath Ltd Phone :+44 (0)7508 107942 Website - http://www.ziath.com IMPORTANT NOTICE: This message, including any attached documents, is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify Ziath Ltd immediately by email at i...@ziath.com. Thank you.
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/