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')
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
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':