This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients alex, berker.peksag, brett.cannon, ezio.melotti, matrixise, serhiy.storchaka, vstinner
Date 2015-10-01.19:54:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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))

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
Date User Action Args
2015-10-01 19:54:18serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, vstinner, ezio.melotti, alex, berker.peksag, matrixise
2015-10-01 19:54:18serhiy.storchakasetmessageid: <>
2015-10-01 19:54:18serhiy.storchakalinkissue25256 messages
2015-10-01 19:54:18serhiy.storchakacreate