[issue42726] gdb/libpython.py InstanceProxy does not work with py3
New submission from Augusto Hack : Calling `proxyval` on an instance of a user defined class fails. minimally reproducible example: ``` from time import sleep class A: def __init__(self): self.a = 1 a = A() sleep(10) ``` Attach to process and run: ``` py-up python-interactive Frame.get_selected_python_frame().get_pyop().get_var_by_name('a')[0].proxyval(set()) ``` Will result in the following error: ``` Traceback (most recent call last): File "", line 1, in File "/usr/lib/debug/usr/lib64/libpython3.7m.so.1.0-3.7.9-2.fc33.x86_64.debug-gdb.py", line 471, in __repr__ for arg, val in self.attrdict.iteritems()]) AttributeError: 'dict' object has no attribute 'iteritems' ``` Tested on fedora 33 with python3.7 and debugsymbols -- components: Demos and Tools messages: 383654 nosy: hack.augusto priority: normal pull_requests: 22764 severity: normal status: open title: gdb/libpython.py InstanceProxy does not work with py3 versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue42726> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42045] Add support to async code to pdb
New submission from Augusto Hack : Currently it seems that `pdb` does not support executing `async` functions. This makes debugging `async` code a bit harder if one needs to call an `async` function from the REPL. Here is an example: ```python import asyncio async def f() -> int: return 1 async def main(): breakpoint() asyncio.run(main()) ``` The goal would be to call `f()`. In a real world application this could be additional HTTP requests, database queries, etc. -- components: asyncio messages: 378687 nosy: asvetlov, hack.augusto, yselivanov priority: normal severity: normal status: open title: Add support to async code to pdb type: enhancement ___ Python tracker <https://bugs.python.org/issue42045> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33569] dataclasses InitVar does not maintain any type info
Change by Augusto Hack : -- keywords: +patch pull_requests: +8399 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33569> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33569] dataclasses InitVar does not maintain any type info
Augusto Hack added the comment: I have made some changes to expose the InitVar type, they are available here: https://github.com/hackaugusto/dataclasses/tree/initvar_type Are these changes sufficient? -- nosy: +hack.augusto ___ Python tracker <https://bugs.python.org/issue33569> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com