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

Ethan Furman ethan at stoneleaf.us
Mon Feb 27 20:12:26 CET 2012


Antoine Pitrou wrote:
> On 2012年2月26日 09:02:59 +0100
> nick.coghlan <python-checkins at python.org> 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).
>> + Return the output lines as a list.
>> + """
>> We already have assert_python_ok 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~


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /