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 ncoghlan
Recipients Antony.Lee, ncoghlan, r.david.murray
Date 2014-10-01.14:55:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412175308.57.0.713066412603.issue22531@psf.upfronthosting.co.za>
In-reply-to
Content
Aye, suppress is only intended for use around a single line of code. Using it for an entire function would be "OnError Resume Next" levels of poor coding style.

I'm also -1 on implicitly wrapping redirect_stdout around functions due to the immediate thread safety problem doing so introduces. The stdout redirection really only makes sense in a single-threaded scripting context, and using it as a decorator rather than inline makes it far too easy to inadvertently violate that constraint.

As far as the "explicitly inherit from object or not" goes, it wouldn't surprise me if that's just a "migrated from Python 2" vs "first introduced in Python 3" distinction. It's not something I would change solely for the sake of consistency.
History
Date User Action Args
2014-10-01 14:55:08ncoghlansetrecipients: + ncoghlan, r.david.murray, Antony.Lee
2014-10-01 14:55:08ncoghlansetmessageid: <1412175308.57.0.713066412603.issue22531@psf.upfronthosting.co.za>
2014-10-01 14:55:08ncoghlanlinkissue22531 messages
2014-10-01 14:55:07ncoghlancreate