Re: [Twisted-Python] AMP with a long-lived connection - results and deferred?

2015-10-28 Thread David Ripton
called when the remote call succeeds or fails. On success, the callback will receive an argument equal to the return value of the remote callable that you called. On failure, the errback will receive an error argument. I have an old GUI (PyGTK, not Kivy) chat over AMP example at https://gith

Re: [Twisted-Python] Removing Python 2.6 Support after Twisted 15.1

2015-03-19 Thread David Ripton
ions can install SCL, then use pip to install new Twisted. IOW, I wouldn't worry about it. Drop support for Python 2.6 when it makes sense for Twisted. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-27 Thread David Ripton
preference. One piece of advice: do the network code first and always exercise it, even when playing on a single computer. Every time I've written a single-machine game first then tried to add networking later, the networking has been a

Re: [Twisted-Python] Twisted 12.0.0 released

2012-02-11 Thread David Ripton
ock solid for me for a couple of weeks, and now 12.0.0 has been equally stable for me for a couple of minutes. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman

Re: [Twisted-Python] Problem passing objects with perspective broker

2012-01-28 Thread David Ripton
may turn into dirty > code ... If you make bClass inherit from pb.Copyable and do pb.setUnjellyableForClass(bClass, bClass) then everything should work. Twisted knows how to do what you want, but it's refusing to do because you haven't marked bClass as safe to pass over the wire. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] SURVEY: Have you submitted a patch to Twisted and it never got in?

2011-07-01 Thread David Ripton
hieving consensus, and then getting your feature in before consensus is lost. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] TextEntry

2010-11-20 Thread David Ripton
alogs actually make sense for a few things. For example, the "Do you really want to quit the program without saving?" dialog in many editors. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Pytho

Re: [Twisted-Python] Don't Thread On Me t-shirt proposal

2010-10-20 Thread David Ripton
On 10/20/10 17:10, Laurens Van Houtven wrote: > Feedback is welcome: do you think the layout or relative sizes should be > changed? Is the apostrophe being missing okay? I think the missing apostrophe looks bad. Otherwise, I like the shirt. -- David Riptondrip...@ript

Re: [Twisted-Python] suggestion for a file transfer protocol

2010-05-11 Thread David Ripton
one port or two ports like ftp > does? I prefer to only use one port if possible, because it's simpler. And it simplifies dealing with firewalls, if you ever have to do that. As long as you split large files into reasonably small chunks so the data pac

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread David Ripton
ode. We had a PyGTK + Twisted program that erroneously used subprocess in one place. 2% of the time, it caused an exception. 98% of the time, it worked fine. Classic race condition. Could be you have a similar bug but it never actually manifests on your combination of code, OS, and hardwa

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread David Ripton
th using subprocess instead of the Twisted equivalent inside a Twisted reactor. IMX it works 99% of the time. Murphy's Law says it'll pass cursory testing and then fail in production. -- David Riptondrip...@ripton.net ___ Tw

Re: [Twisted-Python] How to use AmpList?

2010-03-29 Thread David Ripton
ice some refs or examples. There are a few small examples in twisted/test/test_amp.py test_ampListCommand might be a good starting point. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://

Re: [Twisted-Python] Using Twisted and GTK2

2010-02-04 Thread David Ripton
.com/documents/9.0.0/api/twisted.spread.jelly.html It's human-readable S-expressions. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Using Twisted and GTK2

2010-02-03 Thread David Ripton
current/core/howto/cred.html Cred is very flexible. The integration between PB and Cred isn't quite as flexible, but it works fine for straightforward cases. If you're looking for larger sample code, I have a game that uses PyGTK and PB and Cred, here: http://github.com/dript

Re: [Twisted-Python] order of remote requests

2009-12-29 Thread David Ripton
end A before B over the same TCP connection, and A and B reach the client, then the client will receive A before B. Each Twisted process is single-threaded by default. So if you use TCP, and keep the message processing code simple, then I think you'll get messages pr

Re: [Twisted-Python] zope.interface

2009-12-14 Thread David Ripton
my current game, but might mean that this is the last time I ever have to do it. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted 9.0.0 prerelease 1

2009-11-22 Thread David Ripton
On 2009.11.20 13:33:24 -0800, David Ripton wrote: > On 2009.11.19 22:13:46 -0500, Christopher Armstrong wrote: > > Hey guys. I've done an initial cut of Twisted 9. Please check out > > these tarballs and tell me whether or not you find any regressions or > > othe

Re: [Twisted-Python] Twisted 9.0.0 prerelease 1

2009-11-20 Thread David Ripton
9.0.0pre1 in my local Git repo at work, and did a full build of our product, and then ran the bits that use Twisted (we use the core and the gtk2 reactor and AMP, on RHEL), and nothing obviously weird or bad happened. Bor-ing! Maybe try fewer unit tests next time, to add more excitement

Re: [Twisted-Python] Launching Twisted client using Process call

2009-11-17 Thread David Ripton
atrix.com/projects/core/documentation/howto/process.html There's also https://launchpad.net/ampoule, but for the small example you show, the basic Twisted process stuff should be fine. -- David Riptondrip...@ripton.net ___ Twisted-Python

Re: [Twisted-Python] Twisted and wxPython

2009-11-05 Thread David Ripton
; threads/processes? wx has multiple event loops so reactor integration isn't as easy as it should be. Longer version of that answer here: http://wiki.wxpython.org/wxPythonAndTwisted Here's an example of doing it with threads: https://pangalactic.us/repo/ampchat

Re: [Twisted-Python] Where is TwistedQuotes source code?

2009-09-23 Thread David Ripton
ing Trac here: http://twistedmatrix.com/trac/browser/trunk/doc/core/howto/listings/TwistedQuotes Or just checkout the Twisted trunk from svn. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.

Re: [Twisted-Python] Using reactor with multiple processes

2009-09-18 Thread David Ripton
failures are common with Python 2.4, less common with Python 2.5 or 2.6. So if you're not shackled to^W^W using RHEL or some other archaic piece of^W^W^W Enterprise-friendly distribution, you can probably safely ignore this paragraph.) -- David Riptond

Re: [Twisted-Python] Seeking advice on use of Perspective Broker

2009-09-18 Thread David Ripton
If you end up using one of the others to get better security or portability or whatever, it'll be pretty easy to learn because the Twisted fundamentals carry over.) -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twistd .tac + wxpython

2009-08-20 Thread David Ripton
On 2009.08.20 21:00:52 +, Mikhail wrote: > What GUI library would you recommend instead of wx? If clean integration with Twisted is the primary goal, PyGTK. The gtk2reactor integration is fantastic. -- David Riptondrip...@ripton.

Re: [Twisted-Python] Application Design help - Concurrent but not Protocols based.

2009-06-03 Thread David Ripton
ing asynchronous, then IMO Twisted won't really add any value. In that case I'd just use Python's threading and Queue modules. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Automatic test for Twisted

2009-05-28 Thread David Ripton
testing.html Another option is nose. Google for "nose.twistedtools" -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] official packaging

2009-04-02 Thread David Ripton
anges land I'll test that they work for us too. An issue with pushing this kind of change to RPM-based distros is that writing .spec files by hand and maintaining them is their core competency, so they mostly think using setup.py bdist_rpm to autog

Re: [Twisted-Python] Twisted.mail SMTP server question

2009-03-12 Thread David Ripton
s? That's a one-line .forward file, or (if you want to be fancy) one line in a .procmailrc file. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted developers: please donate your time!

2009-02-23 Thread David Ripton
ou're planning on working on Twisted anyway this year, your work will > count twice as much! > > So, if you're interested, please reply, saying something like "I will > spend two weeks working on Gopher support over the next year." I will spend one week working on I

Re: [Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-10 Thread David Ripton
nation of latency and network traffic, so if you don't need low latency or don't mind a bit more traffic then a simpler protocol will work fine. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatr

[Twisted-Python] Two thumbs up for inotify.py

2008-12-19 Thread David Ripton
been untouched for a long time. Should I comment there? Thanks. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Pyjamas + web2py + twisted vs Django + Pinax

2008-12-18 Thread David Ripton
o mature from experimental research code to production-quality stuff.) So my advice is to write a simple tic-tac-toe game in Pyjamas, and find out. -- David Ripton drip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python