[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-17 Thread xloem


xloem <0xl...@gmail.com> added the comment:

I'm sorry, is this closure an error? Could you explain more how to use 
asyncio.run() to clean up resources when an unhandled exception is thrown? Is 
this new with a recent python improvement?

--
status: closed -> open

___
Python tracker 
<https://bugs.python.org/issue42838>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-18 Thread xloem


xloem <0xl...@gmail.com> added the comment:

hey, I don't have the capacity to stay on this, but thanks for the attention, 
time, and clear response.

there are of course other situations such as returning a resource to library 
code or manual loop management, but I don't have the use case present any more.

maybe an aatexit library could patch this in if needed.

--
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42838>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-18 Thread xloem


Change by xloem <0xl...@gmail.com>:


--
resolution: out of date -> wont fix

___
Python tracker 
<https://bugs.python.org/issue42838>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-18 Thread xloem


Change by xloem <0xl...@gmail.com>:


--
resolution: wont fix -> out of date

___
Python tracker 
<https://bugs.python.org/issue42838>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45302] basic builtin functions missing __text_signature__ attributes

2021-09-27 Thread xloem


New submission from xloem <0xl...@gmail.com>:

As there is no __text_signature__ nor __signature__ attribute on basic builtin 
functions such as print or open, inspect.signature() cannot enumerate their 
parameters.

It seems adding these might not be a complex task for somebody familiar with 
the code.

--
components: Argument Clinic, Interpreter Core
messages: 402727
nosy: larry, xloem
priority: normal
severity: normal
status: open
title: basic builtin functions missing __text_signature__ attributes
type: enhancement
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue45302>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45303] ast module classes missing __text_signature__ attribute

2021-09-27 Thread xloem


New submission from xloem <0xl...@gmail.com>:

The ast module has no signature information on its types.  The types are 
generated in a uniform way, so it should be reasonable to add 
__text_signature__ or __signature__ fields to all of them at once.

--
components: Argument Clinic, Interpreter Core, Library (Lib)
messages: 402728
nosy: larry, xloem
priority: normal
severity: normal
status: open
title: ast module classes missing __text_signature__ attribute
type: enhancement

___
Python tracker 
<https://bugs.python.org/issue45303>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45302] 10 built-in functions need non-None .__text_signature__

2021-10-04 Thread xloem


xloem <0xl...@gmail.com> added the comment:

Thanks for your time.

Just a note that this is likely a docs issue if nothing else.  I may never have 
opened this issue if the missing functions were listed in the inspect module 
documentation.

--

___
Python tracker 
<https://bugs.python.org/issue45302>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42838] Wait for cleanup coroutines before event loop is closed.

2021-01-06 Thread xloem


New submission from xloem <0xl...@gmail.com>:

To handle destruction of resources especially during exceptions, it would be 
nice if there were some way to provide coroutines/tasks that run at the 
termination or closure of an event loop.  There are a lot of api options here.  
Maybe a simple one would be to have close() call a run_until_closed() function 
that starts all of these and steps the loop to wait for them, before closing, 
and provide run_close() functions to queue them for delay.

--
components: asyncio
messages: 384503
nosy: asvetlov, xloem, yselivanov
priority: normal
severity: normal
status: open
title: Wait for cleanup coroutines before event loop is closed.
type: enhancement
versions: Python 3.10, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue42838>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com