On Fri, Mar 4, 2011 at 9:32 PM, Scott Dial <scott+python-dev at scottdial.com> wrote: > I am still bothered by the fact that, > >>>> import faulthandler >>>> faulthandler.enable() >>>> import sys >>>> sys.stderr.close() >>>> sys.stderr = open('logs/error.log', 'wb') >>>> faulthandler.sigsegv() > > , does the wrong thing. In this incantation, it's easy to say that it's > programmer error, but I think this still precludes it from being on by > default (where the first two statement are implicitly executed by the > interpreter). It's probably uncommon enough to close stderr from an > interactive interpreter session that it doesn't bother me (although I am > not sure the utility of that), but I would hesitate to say that is true > for using '-i'. Perhaps the module should be using sys.__stderr__ instead? If anyone is messing with that, on their own heads be it. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4