Twisted: UDP socket not closed.

2007-12-22 Thread Kevac Marko
Hi. I have to send UDP packets very often. Approx twice in a second. But socket is not closed after sending packet. So soon i bump into open sockets\files limit. How to close socket after sending data? Python 2.5, Twisted class DataClient(DatagramProtocol): def __init__(self, address, datag

Re: Global variables within classes.

2007-11-27 Thread Kevac Marko
a the value isn't changed the default > value is just referenced from the class then and not every instance. > When changing default value, is there any way to change class attribute and all referenced attributes too? class M: name = u"Marko" a, b = M(), M() a.name = u"