Serhiy Storchaka added the comment:

I don't like this. The sys module is one of most used module, but it has too 
many members, and adding yet one makes the situation worse.

>>> len(dir(sys))
81

Checking for debug mode is not often needed, and mainly in tests. Current way 
``hasattr(sys, 'gettotalrefcount')`` works good. You also can check ``'d' in 
sys.abiflags`` if it looks cleaner to you. Or add a member to test.support.

----------
nosy: +serhiy.storchaka

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

Reply via email to