[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

Jani Hakala report at bugs.python.org
Fri Feb 20 10:14:05 CET 2009


New submission from Jani Hakala <jahakala at iki.fi>:

The implementation in python 2.6 expects the cmd argument to be a string. 
The documentation - help(os.popen3) - states that the cmd argument can
be a sequence on Unix.

This difference may cause programs that work with python 2.5 to fail
with python 2.6

I have tested the patch attached with one of my scripts that failed with
python 2.6 and the fix appears to work.

----------
components: Library (Lib)
files: os-popen.diff
keywords: patch
messages: 82523
nosy: jahakala
severity: normal
status: open
title: os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5
versions: Python 2.6
Added file: http://bugs.python.org/file13140/os-popen.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5329>
_______________________________________


More information about the Python-bugs-list mailing list