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 christian.heimes
Recipients christian.heimes, gvanrossum
Date 2007-11-14.18:39:35
SpamBayes Score 0.032831065
Marked as misclassified No
Message-id <473B40ED.3010304@cheimes.de>
In-reply-to <1195062792.75.0.372080127367.issue1440@psf.upfronthosting.co.za>
Content
Guido van Rossum wrote:
> The patch looks okay, but I just thought of something -- why not make
> sys.stdout and friends be undefined (i.e. NULL) instead of setting them
> to None?  That way this patch isn't necessary and you only need one
> small change to builtin_print() -- which you need anyway (Try deleting
> sys.stdout and then printing something.)

I prefer "if sys.stdout is None" over "if hasattr(sys, 'stdout'):" and
"sys.stdout = None" over "del sys.stdout". I can't put words to it but
it feels more natural to set the stream to None (NULL) than to
incinerate the stream.

IMO the problem warrants a short poll at Python 3000 dev.

Christian
History
Date User Action Args
2007-11-14 18:39:36christian.heimessetspambayes_score: 0.0328311 -> 0.032831065
recipients: + christian.heimes, gvanrossum
2007-11-14 18:39:36christian.heimeslinkissue1440 messages
2007-11-14 18:39:36christian.heimescreate