[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-10-22 Thread Chris Meyer
Chris Meyer added the comment: Is there a way to reproduce this issue? I run the following code in Python 3.9 and it works as expected (prints "xyz" twice). import asyncio import gc async def xyz(): print("xyz") event_loop = asyncio.get_event_loop() event_loop.c

[issue45454] Unable to explicitly subclass protocol when subclass has mixin requiring init

2021-10-12 Thread Chris Meyer
Chris Meyer added the comment: This looks like it a regression specific to Python 3.9.7 and has been fixed. https://bugs.python.org/issue45081 https://github.com/python/cpython/pull/28132. -- resolution: -> duplicate stage: -> resolved status: open -&g

[issue45454] Unable to explicitly subclass protocol when subclass has mixin requiring init

2021-10-12 Thread Chris Meyer
New submission from Chris Meyer : If I make a explicit subclass of a protocol that also inherits from a mixin and calls super() in order to initialize the mixin, I get the "Protocols cannot be instantiated" exception. This case arises when having a hierarchy of both protocols an

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-11 Thread Chris Meyer
Chris Meyer added the comment: >> I would like to request that this ability to dynamically load Python DLLs >> remains even with any new initialization mechanism. > I don't plan to remove any feature :-) I am glad to hear that. I'm somewhat nervous about it nevertheless.

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-11 Thread Chris Meyer
Chris Meyer added the comment: > How do you configure sys.path currently? Do you parse a configuration file? > Do you use a registry key on Windows? We have several launch scenarios - but for the currently most common one, which is to launch using a separate, existing Python environme

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-11 Thread Chris Meyer
Chris Meyer added the comment: Responding to your request for feedback on Python-Dev: We embed Python dynamically by finding the libPython DLL, loading it, and looking up the required symbols. We make appropriate define's so that the Python headers (and NumPy headers) point to our functions

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-07-16 Thread Chris Meyer
Change by Chris Meyer : -- nosy: +cmeyer ___ Python tracker <https://bugs.python.org/issue38856> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-05-29 Thread Chris Meyer
Change by Chris Meyer : -- keywords: +patch pull_requests: +19769 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20525 ___ Python tracker <https://bugs.python.org/issu

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-05-11 Thread Chris Meyer
Chris Meyer added the comment: Here is another way to reproduce this (or an extremely similar) error without a loop. Since may be a race condition, I'm not sure this works 100% of the time on all machines - but it did on several machines I tried. ``` import asyncio loop

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-05-04 Thread Chris Meyer
Change by Chris Meyer : -- nosy: +cmeyer ___ Python tracker <https://bugs.python.org/issue39232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-04-21 Thread Chris Meyer
New submission from Chris Meyer : Is the new asyncio.loop.shutdown_default_executor() suitable for event loops that are run in single-step mode? event_loop.create_task(event_loop.shutdown_default_executor()) event_loop.stop() event_loop.run_forever() I don't see how it will work since

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2020-04-20 Thread Chris Meyer
Change by Chris Meyer : -- nosy: +cmeyer ___ Python tracker <https://bugs.python.org/issue34037> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-04-20 Thread Chris Meyer
Change by Chris Meyer : -- nosy: +cmeyer ___ Python tracker <https://bugs.python.org/issue39010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37373] Configuration of windows event loop for libraries

2020-04-20 Thread Chris Meyer
Change by Chris Meyer : -- nosy: +cmeyer ___ Python tracker <https://bugs.python.org/issue37373> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-04-20 Thread Chris Meyer
Chris Meyer added the comment: Is this related to bpo-39010 too? -- nosy: +cmeyer ___ Python tracker <https://bugs.python.org/issue39651> ___ ___ Python-bug

[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2016-10-17 Thread Chris Meyer
New submission from Chris Meyer: BaseEventLoop.close shuts down the executor associated with the event loop. It should do that BEFORE it sets self._closed = True, otherwise any pending executor futures will attempt to 'call_soon' on the event loop when they finish, resulting in a confusing