[Twisted-Python] simple global counter
screwtape at froup.com
Tue Sep 15 06:33:09 EDT 2009
On Tue, Sep 15, 2009 at 04:54:09PM +0700, Artem Bokhan wrote:
> Tim Allen пишет:
> > On Mon, Sep 14, 2009 at 10:09:38PM +0700, Artem Bokhan wrote:
> >> May somebody give a sample code of simple global counter which could be
> >> used with twisted (non-web) enviroment?
> > I'm not sure what you mean.
> I want find out if it's possible to count things in context of the
> whole twisted server, not just one tcp session.
Well, of course - you can create global variables in Python, and nothing
in Twisted affects that.
More information about the Twisted-Python