Christoph Schindler h...@30hopsmax.at added the comment:
The doc string refers to string instead of byte string as well.
--
nosy: +hop
Added file: http://bugs.python.org/file23245/subprocess_doc_string.diff
___
Python tracker rep...@bugs.python.org
Georg Brandl [EMAIL PROTECTED] added the comment:
Fixed docs in r64619.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
Rafael Zanella [EMAIL PROTECTED] added the comment:
_communicate still encodes the string under the hood
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
Georg Brandl [EMAIL PROTECTED] added the comment:
You're right, I fixed that too in r64621.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
___
Rafael Zanella [EMAIL PROTECTED] added the comment:
On subprocess.py the new method communicate() doesn't encode the string:
_communicate(self, input):
...
if isinstance(input, str):
input = input.encode()
...
I've attached a patch that adds the str.encode() call on communicate().
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Hmm. I think it's better to make people explicity encode their string.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I say docs.
--
assignee: - georg.brandl
components: +Documentation -Extension Modules
nosy: +benjamin.peterson, georg.brandl
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
Changes by Martin v. Löwis [EMAIL PROTECTED]:
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
___
Python-bugs-list mailing list
Unsubscribe:
admin [EMAIL PROTECTED] added the comment:
What is wrong? Documentation or method?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
___
Python-bugs-list
New submission from Lenard Lindstrom [EMAIL PROTECTED]:
subprocess.Popen.communicate is documented as taking a string as the
input argument. Instead is accepts only a binary stream (bytes).
Python 3.0a4 (r30a4:62126, Apr 3 2008, 15:34:18) [MSC v.1500 32 bit
(Intel)] on
win32
Type help,
10 matches
Mail list logo