Mailing List Archive

[issue15153] Add inspect.getgeneratorlocals
New submission from Nick Coghlan <ncoghlan@gmail.com>:

Extracted from #13062, the proposal is add a simple API to inspect the local variables of a generator with an associated frame.

----------
components: Library (Lib)
messages: 163560
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Add inspect.getgeneratorlocals
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue15153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue15153] Add inspect.getgeneratorlocals [ In reply to ]
Nick Coghlan <ncoghlan@gmail.com> added the comment:

The intended use case is for whitebox testing of generator behaviour.

----------

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue15153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue15153] Add inspect.getgeneratorlocals [ In reply to ]
Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment:

New changeset dd82a910eb07 by Nick Coghlan in branch 'default':
Close #15153: Added inspect.getgeneratorlocals to simplify whitebox testing of generator state updates
http://hg.python.org/cpython/rev/dd82a910eb07

----------
nosy: +python-dev
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue15153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com