def accept_connections_forever(listener):
 while True:
  (sock, address) = listener.accept()
  print 'Accepted connection from {}'.format(address)
  handle_conversation(sock, address)

def accept_connections_forever ( listener ) : while True : ( sock , address ) = listener . accept ( ) print 'Accepted connection from {}' . format ( address ) handle_conversation ( sock , address )
forever answer incoming connections on a listening socket .