Message249551
> - accept host and port arguments being sequences and then we bind to all host:port combinations. Like if len(host) == N and len(port) == M, we bind to N*M sockets.
I can't think of a real life example for this. But if you need that, you can always implement that on top of function that accepts multiple (host,port) pairs.
> - accept host and port arguments being sequences and allow repetitions and bind to host:port couples from zip(host, port).
I'm not sure I like this either. This breaks one value `(h,p)` into two values, and passes them in separate collections to separated arguments. Too complex.
My proposal is to allow the following:
create_server(protofac, [(h1,p1),(h2,p2)]) |
|
Date |
User |
Action |
Args |
2015-09-02 14:38:28 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, vstinner, sebastien.bourdeauducq, ysionneau |
2015-09-02 14:38:28 | yselivanov | set | messageid: <1441204708.03.0.814096533591.issue23630@psf.upfronthosting.co.za> |
2015-09-02 14:38:28 | yselivanov | link | issue23630 messages |
2015-09-02 14:38:27 | yselivanov | create | |
|