This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients asvetlov, chris.jerdonek, pitrou
Date 2012-08-13.14:31:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344868314.82.0.53202688016.issue15592@psf.upfronthosting.co.za>
In-reply-to
Content
> From my perspective input should be encoded (converted to bytes) if it is str regardless of universal_newlines value.

I don't know the reason, but the limitation is documented:

"The optional input argument should be data to be sent to the child process, or None, if no data should be sent to the child. The type of input must be bytes or, if universal_newlines was True, a string."

http://docs.python.org/dev/library/subprocess.html#subprocess.Popen.communicate

Maybe "explicit better than implicit"?
History
Date User Action Args
2012-08-13 14:31:54chris.jerdoneksetrecipients: + chris.jerdonek, pitrou, asvetlov
2012-08-13 14:31:54chris.jerdoneksetmessageid: <1344868314.82.0.53202688016.issue15592@psf.upfronthosting.co.za>
2012-08-13 14:31:54chris.jerdoneklinkissue15592 messages
2012-08-13 14:31:54chris.jerdonekcreate