[issue26437] asyncio create_server() not always accepts the 'port' parameter as str

2016-06-08 Thread Berker Peksag
Berker Peksag added the comment: After changeset 3ec208c01418 this is no longer an issue: >>> from asyncio import * >>> loop = get_event_loop() >>> coro = loop.create_server(Protocol(), '', '12345') >>> loop.run_until_complete(coro) >> coro = loop.create_server(Protocol(), '127.0.0.1', '12345')

[issue26437] asyncio create_server() not always accepts the 'port' parameter as str

2016-02-25 Thread Guido van Rossum
Guido van Rossum added the comment: I don't know why it used to accept a string port, but I can't find anything in the docs indicating that is acceptable. I am guessing the doc authors assumed it was so obvious that a port is an integer they forgot to mention it. I can guess that in the past s

[issue26437] asyncio create_server() not always accepts the 'port' parameter as str

2016-02-25 Thread Xavier de Gaye
New submission from Xavier de Gaye: create_server() used to accept the 'port' parameter as a string before in all cases (until last december at least). The following session shows the difference in behavior when the listening address is INADDR_ANY and '127.0.0.1':