Re: udp, datagram sockets

2007-08-06 Thread anethema
On Aug 6, 1:27 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Mon, 2007-08-06 at 09:03 -0700, 7stud wrote: > > server: > > -- > > import socket > > import sys > > > s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) > > s.bind(("", )) > > [...] > > #Send messages ba

Re: Imported globals?

2007-07-27 Thread anethema
> It seems that in the first case change_value() called in module_b.py > ignores the global statement. Is it so? Why? What happens in the second > case? I really don't get it. The key is that it doesn't ignore the global statement, but that global specifically points to the variable 'value' in mod

Re: lists and dictionaries

2007-07-11 Thread anethema
> li = [ {'index': 0, 'transport': 'udp', 'service_domain': > 'dp0.example.com'}, > {'index': 1, 'transport': 'udp', 'service_domain': > 'dp1.example.com'}, > {'index': 0, 'transport': 'tcp', 'service_domain': > 'dp0.example.com'}, > {'index': 1, 'transport': 'tcp', 'servi