Re: [Python-Dev] cpython: Close issue #6210: Implement PEP 409

2012-02-27 Thread Ethan Furman
Antoine Pitrou wrote: On Sun, 26 Feb 2012 09:02:59 +0100 nick.coghlan wrote: +def get_output(self, code, filename=None): +""" +Run the specified code in Python (in a new child process) and read the +output from the standard error or from a file (if filename is set).

Re: [Python-Dev] cpython: Close issue #6210: Implement PEP 409

2012-02-26 Thread Nick Coghlan
On Sun, Feb 26, 2012 at 11:54 PM, Antoine Pitrou wrote: >> +    def prepare_subprocess(): >> +        # don't create core file >> +        try: >> +            setrlimit(RLIMIT_CORE, (0, 0)) >> +        except (ValueError, resource_error): >> +            pass > > Really? This sounds quite wrong,

Re: [Python-Dev] cpython: Close issue #6210: Implement PEP 409

2012-02-26 Thread Antoine Pitrou
On Sun, 26 Feb 2012 09:02:59 +0100 nick.coghlan wrote: > + > +No debugging capability is lost, as the original exception context remains > +available if needed (for example, if an intervening library has incorrectly > +suppressed valuable underlying details):: That's debatable, since you now have