Message 89199 - Python tracker (original) (raw)

Message89199

Author ptn
Recipients OG7, grahamd, i000, jnoller, ptn
Date 2009-06-10.13:58:01
SpamBayes Score 8.929578e-06
Marked as misclassified No
Message-id 1244642282.9.0.123774704077.issue5313@psf.upfronthosting.co.za
In-reply-to
Content
Wouldn't it be more pythonic to just try sys.stdin.fileno() and catch the AtributeError too? def _bootstrap(self): .... try: os.close(sys.stdin.fileno()) except AtributeError: sys.stdin.close() except (OSError, ValueError): pass
History
Date User Action Args
2009-06-10 13:58:03 ptn set recipients: + ptn, OG7, jnoller, grahamd, i000
2009-06-10 13:58:02 ptn set messageid: 1244642282.9.0.123774704077.issue5313@psf.upfronthosting.co.za
2009-06-10 13:58:01 ptn link issue5313 messages
2009-06-10 13:58:01 ptn create