[New-bugs-announce] [issue27415] BaseEventLoop.create_server does not accept port=None

Marcus Cobden report at bugs.python.org
Wed Jun 29 10:46:01 EDT 2016


New submission from Marcus Cobden:

With the most recent 3.4 bugfix, calling create_server with port=None stopped working.
This also affects 3.5, and I would imagine also 3.6, but haven't checked that.

Test case:

import asyncio; l = asyncio.get_event_loop(); l.run_until_complete(l.create_server(lambda: None, host='0.0.0.0', port=None))

Expected result: a socket object
Broken result: "TypeError: an integer is required (got type NoneType)"

----------
components: asyncio
messages: 269507
nosy: gvanrossum, haypo, mcobden, yselivanov
priority: normal
severity: normal
status: open
title: BaseEventLoop.create_server does not accept port=None
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27415>
_______________________________________


More information about the New-bugs-announce mailing list