[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport
New submission from Thomas Trummer : According to the documentation[1] loop.create_datagram_endpoint() returns an asyncio.DatagramTransport. However on Windows this is not the case when the ProactorEventLoop is used (which seems to be the default since Python 3.8). This is a problem because a DatagramProtocol subclass needs a downcast in order to satisfy the type system (or mypy for that matter). [1] https://docs.python.org/3/library/asyncio-protocol.html#asyncio.DatagramTransport --- # Will print: False import asyncio class EchoServerProtocol(asyncio.DatagramProtocol): def connection_made(self, transport): print(type(transport), isinstance(transport, asyncio.DatagramTransport)) async def main(): transport, protocol = await asyncio.get_running_loop().create_datagram_endpoint( lambda: EchoServerProtocol(), local_addr=('127.0.0.1', )) try: await asyncio.sleep(5) finally: transport.close() asyncio.run(main()) -- components: asyncio messages: 399376 nosy: Thomas Trummer, asvetlov, yselivanov priority: normal severity: normal status: open title: asyncio: create_datagram_endpoint() does not return a DatagramTransport versions: Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44886> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44743] asyncio DatagramProtocol stops calling callbacks after OSError
Change by Thomas Trummer : -- nosy: +Thomas Trummer ___ Python tracker <https://bugs.python.org/issue44743> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44948] DeprecationWarning: Using ioctl() method
New submission from Thomas Trummer : DeprecationWarning: Using ioctl() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org. Use case: def connection_made(self, transport: asyncio.BaseTransport) -> None: sock = transport.get_extra_info('socket') # type: socket.socket sock.ioctl(SIO_UDP_CONNRESET, False) Releated: https://bugs.python.org/issue44743 -- components: Windows, asyncio messages: 399845 nosy: Thomas Trummer, asvetlov, paul.moore, steve.dower, tim.golden, yselivanov, zach.ware priority: normal severity: normal status: open title: DeprecationWarning: Using ioctl() method versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue44948> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45748] "import ctypes" segfaults on Python 3.6 and Ubuntu 21.10
New submission from Thomas Trummer : 3.7 and later are all working fine. First good commit: 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0 First bad commit: fdbd01151dbd5feea3e4c0316d102db3d2a2a412 git checkout v3.6.15 #0 0x76cc52a0 in PyCFuncPtr_new (type=0x559157f8, args=0x76ce6dd8, kwds=0x0) at /home/tom/pydev/cpython/Modules/_ctypes/_ctypes.c:3557 #1 0x556400f9 in type_call (type=0x559157f8, args=0x76ce6dd8, kwds=0x0) at Objects/typeobject.c:895 #2 0x555db4ca in _PyObject_FastCallDict (func=0x559157f8, args=0x76dc1f48, nargs=1, kwargs=0x0) at Objects/abstract.c:2331 #3 0x556b8e7c in call_function (pp_stack=pp_stack@entry=0x7fffcb58, oparg=, kwnames=kwnames@entry=0x0) at Python/ceval.c:4875 #4 0x556bc9d3 in _PyEval_EvalFrameDefault (f=, throwflag=) at Python/ceval.c:3335 #5 0x556b774c in PyEval_EvalFrameEx (throwflag=0, f=0x76dc1dc8) at Python/ceval.c:754 #6 _PyFunction_FastCall (co=, args=, nargs=nargs@entry=0, globals=) at Python/ceval.c:4933 #7 0x556b9269 in fast_function (kwnames=0x0, nargs=0, stack=, func=0x76d78378) at Python/ceval.c:4968 #8 call_function (pp_stack=pp_stack@entry=0x7fffccf8, oparg=, kwnames=kwnames@entry=0x0) at Python/ceval.c:4872 #9 0x556bc9d3 in _PyEval_EvalFrameDefault (f=, throwflag=) at Python/ceval.c:3335 #10 0x556b83c7 in PyEval_EvalFrameEx (throwflag=0, f=0x558d2248) at Python/ceval.c:754 #11 _PyEval_EvalCodeWithName (_co=_co@entry=0x76cdf660, globals=globals@entry=0x76dfa438, locals=locals@entry=0x76dfa438, args=args@entry=0x0, argcount=argcount@entry=0, kwnames=kwnames@entry=0x0, kwargs=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0, kwstep=2) at Python/ceval.c:4166 #12 0x556b9a25 in PyEval_EvalCodeEx (closure=0x0, kwdefs=0x0, defcount=0, defs=0x0, kwcount=0, kws=0x0, argcount=0, args=0x0, locals=0x76dfa438, globals=0x76dfa438, _co=0x76cdf660) at Python/ceval.c:4187 #13 PyEval_EvalCode (co=co@entry=0x76cdf660, globals=globals@entry=0x76dfa438, locals=locals@entry=0x76dfa438) at Python/ceval.c:731 #14 0x556b611d in builtin_exec_impl (module=, locals=0x76dfa438, globals=0x76dfa438, source=0x76cdf660) at Python/bltinmodule.c:983 #15 builtin_exec (module=, args=) at Python/clinic/bltinmodule.c.h:283 #16 0x5562b651 in PyCFunction_Call (func=func@entry=0x76eb7990, args=args@entry=0x76cdcd08, kwds=kwds@entry=0x76d6b288) at Objects/methodobject.c:126 #17 0x556c11af in do_call_core (kwdict=0x76d6b288, callargs=0x76cdcd08, func=0x76eb7990) at Python/ceval.c:5116 #18 _PyEval_EvalFrameDefault (f=, throwflag=) at Python/ceval.c:3404 #19 0x556b8d17 in PyEval_EvalFrameEx (throwflag=0, f=0x76dc2930) at Python/ceval.c:754 #20 _PyEval_EvalCodeWithName (_co=0x76eabdb0, globals=, locals=, args=, argcount=3, kwnames=0x0, kwargs=0x76d913c8, kwcount=0, kwstep=1, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x76e53ad0, qualname=0x76e53ad0) at Python/ceval.c:4166 -- components: ctypes messages: 405950 nosy: Thomas Trummer priority: normal severity: normal status: open title: "import ctypes" segfaults on Python 3.6 and Ubuntu 21.10 versions: Python 3.6 ___ Python tracker <https://bugs.python.org/issue45748> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35898] The TARGETDIR variable must be provided when invoking this installer
New submission from Thomas Trummer : The installer for Python 3.8.0a1 doesn't work under Windows 7. It shows the aforementioned error message. -- components: Installation files: Python 3.8.0a1 (64-bit)_20190205130936.log messages: 334865 nosy: Thomas Trummer priority: normal severity: normal status: open title: The TARGETDIR variable must be provided when invoking this installer type: behavior versions: Python 3.8 Added file: https://bugs.python.org/file48097/Python 3.8.0a1 (64-bit)_20190205130936.log ___ Python tracker <https://bugs.python.org/issue35898> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35898] The TARGETDIR variable must be provided when invoking this installer
Change by Thomas Trummer : Added file: https://bugs.python.org/file48100/Python 3.8.0a1 (64-bit)_20190205131106_000_core_JustForMe.log ___ Python tracker <https://bugs.python.org/issue35898> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35898] The TARGETDIR variable must be provided when invoking this installer
Change by Thomas Trummer : Added file: https://bugs.python.org/file48098/Python 3.8.0a1 (64-bit)_20190205130936_000_core_JustForMe.log ___ Python tracker <https://bugs.python.org/issue35898> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35898] The TARGETDIR variable must be provided when invoking this installer
Change by Thomas Trummer : Added file: https://bugs.python.org/file48099/Python 3.8.0a1 (64-bit)_20190205131106.log ___ Python tracker <https://bugs.python.org/issue35898> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com