def pollNewConn(s):
    """
    Routine to check for incoming connections. Accepts a socket object 's' as
    argument and returns a User object 'user'
    """
    try:
        conn, addr = s.accept()     # [Tip] Read the socket HOWTO
    except:
        return None
    print "Connection from ", addr
    conn.setblocking(0)             # [7] What is the effect of this call ?
    user = User(conn, addr)
    return user

    Routine to check for incoming connections. Accepts a socket object 's' as
    argument and returns a User object 'user'
    
recipes/Python/302218_Joe_Strouts_chatserverpy_converted/recipe-302218.py