[issue33328] pdb error when stepping through generator

2018-04-29 Thread Rick Teachey
Rick Teachey added the comment: Closed as duplicate of issue 13044. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue33328] pdb error when stepping through generator

2018-04-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a duplicate of issue 13044. > Why the code of the never used asynchronous generator is executed at all? The destructor of the asynchronous generator is called during python finalization while the trace is still active. Here is the backtrace where pyt

[issue33328] pdb error when stepping through generator

2018-04-21 Thread Rick Teachey
Rick Teachey added the comment: I am on Anaconda 4.5.1 on Windows 10 (Python 3.6.5). I have confirmed that I DO get the error on another machine with the same version installed, so the lack of an error seems specific to my current machine. I do not know what could be causing this; it is very

[issue33328] pdb error when stepping through generator

2018-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Rick. But I get the same error in 3.6. An AttributeError is raised if the debugger runs at the interpreter shutdown stage (sys.is_finalizing() returns True). sys.path was set to None at the beginning of modules cleanup. The debugge

[issue33328] pdb error when stepping through generator

2018-04-21 Thread Rick Teachey
Change by Rick Teachey : -- components: +Library (Lib) type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue33328] pdb error when stepping through generator

2018-04-21 Thread Rick Teachey
Rick Teachey added the comment: The interactive session result is below: GeneratorExit Exception ignored in: Traceback (most recent call last): File "C:\Users\ricky\AppData\Local\Programs\Python\Python37\lib\types.py", line 27, in _ag File "C:\Users\ricky\AppData\Local\Programs\Python\Py

[issue33328] pdb error when stepping through generator

2018-04-21 Thread Rick Teachey
New submission from Rick Teachey : Hello: The attached python file runs a pdb interactive session for a generator. It produces an error in Python 3.7 Beta 3, but no error in 3.6. I searched for this issue and there do seem to be things that are related to it already, but I haven't investigat