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
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
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
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
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
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
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
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
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
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
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
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://
.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
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
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
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
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
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
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
; 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
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.
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
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
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.
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
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
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
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
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
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
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
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
32 matches
Mail list logo