This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients gvanrossum, sebastien.bourdeauducq, vstinner, yselivanov, ysionneau
Date 2015-09-02.14:38:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441204708.03.0.814096533591.issue23630@psf.upfronthosting.co.za>
In-reply-to
Content
> - 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)])
History
Date User Action Args
2015-09-02 14:38:28yselivanovsetrecipients: + yselivanov, gvanrossum, vstinner, sebastien.bourdeauducq, ysionneau
2015-09-02 14:38:28yselivanovsetmessageid: <1441204708.03.0.814096533591.issue23630@psf.upfronthosting.co.za>
2015-09-02 14:38:28yselivanovlinkissue23630 messages
2015-09-02 14:38:27yselivanovcreate