you are viewing a single comment's thread
view the rest of the comments
[–] 36 points 19 hours ago (8 children)

Why is Python on the list three times?

  • source
  • hideshow 8 child comments
  • [–] 5 points 15 hours ago* (1 child)

    The first two are frameworks, the third is:

    def serve(p: int, f):
        s = socket.socket()
        s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # let me reset plz
        s.bind(("", p))
        s.listen()
        while True:
            c, a = s.accept()
            c.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
            t = threading.Thread(target=serve0, args=(c, a, f))
            t.daemon = True
            t.start()
    

    I have an entire file of some really cursed malicious compliance code for when I was brutally forced to write Python.

  • source
  • parent
  • hideshow 1 child comment