[Python-Dev] cpython: Close issue #6210: Implement PEP 409 (original) (raw)
Ethan Furman ethan at stoneleaf.us
Mon Feb 27 20:12:26 CET 2012
- Previous message: [Python-Dev] cpython: Close issue #6210: Implement PEP 409
- Next message: [Python-Dev] [Python-checkins] cpython (3.2): Issue #14123: Explicitly mention that old style % string formatting has caveats
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Antoine Pitrou wrote:
On Sun, 26 Feb 2012 09:02:59 +0100 nick.coghlan <python-checkins at python.org> wrote:
+ def getoutput(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). + Return the output lines as a list. + """ We already have assertpythonok and friends. It's not obvious what this additional function achieves. Also, the "filename" argument is never used.
+ output = re.sub('Current thread 0x[0-9a-f]+', + 'Current thread XXX', + output) This looks like output from the faulthandler module. Why would faulthandler kick in here?
That's because I stole those two functions from the faulthandler module. Still learning where all the goodies are. Thanks for the tip about assert_python_ok, etc.
Ethan
- Previous message: [Python-Dev] cpython: Close issue #6210: Implement PEP 409
- Next message: [Python-Dev] [Python-checkins] cpython (3.2): Issue #14123: Explicitly mention that old style % string formatting has caveats
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]