Barry A. Warsaw <ba...@python.org> added the comment:

Thanks for the hint!  I had a feeling there had to be an API to get at it, but 
I couldn’t find it.  Maybe we should start documenting the Python Secret 
Underscore API? :)

On Jun 22, 2018, at 00:04, STINNER Victor <rep...@bugs.python.org> wrote:
> 
> _PyCoreConfig *core_config = 
> &_PyGILState_GetInterpreterStateUnsafe()->core_config;
> ...
> PyStructSequence_SET_ITEM(seq, pos++, PyBool_FromLong(core_config->dev_mode));
> 
> The interpreter really owns the copy of these configs and they are kept until 
> the interpreter object is destroyed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33919>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to