Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46149
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'args': 0.07; 'binary': 0.07; 'to)': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'self.stdin': 0.16; 'simpson': 0.16; 'subject:ideas': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'input': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'sorry,': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'mode': 0.30; 'interface': 0.32; 'text': 0.33; 'open': 0.33; 'received:com.au': 0.36; 'charset:us- ascii': 0.36; 'subject:?': 0.36; 'should': 0.36; 'being': 0.38; 'received:211': 0.38; 'whatever': 0.38; 'does': 0.39; 'till': 0.61; "you're": 0.61; 'content-disposition:inline': 0.62; 'to:addr:gmail.com': 0.65; 'subject:. ': 0.67; 'subject:This': 0.74; 'subject:gets': 0.84; 'str.': 0.91 |
| Date | Mon, 27 May 2013 10:28:09 +1000 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | Νίκος Γκρ33κ <nikos.gr33k@gmail.com> |
| Subject | Re: This mail never gets delivered. Any ideas why? |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <20130527002229.GA12740@cskk.homeip.net> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <20130527002229.GA12740@cskk.homeip.net> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.0 cv=e4Ne0tV/ c=1 sm=1 a=wom5GMh1gUkA:10 a=tfKMDS7sHdYA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=oU5zinON0TkA:10 a=aeDd9O_JnVBZKBOMftIA:9 a=CjuIK1q_8ugA:10 a=ChdAjXE5lkUvdteQbhpnkQ==:117 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2225.1369614504.3114.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1369614504 news.xs4all.nl 15881 [2001:888:2000:d::a6]:52161 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:46149 |
Show key headers only | View raw
On 27May2013 10:22, I wrote:
| | => 903 self.stdin.write(input)
[...]
| | self = <subprocess.Popen object>, self.stdin = <_io.BufferedWriter name=5>, self.stdin.write = <built-in method write of _io.BufferedWriter object>, input = 'kdsjfksdjkfjksdjfs\r\n\t'
| | TypeError: 'str' does not support the buffer interface
| | args = ("'str' does not support the buffer interface",)
| | with_traceback = <built-in method with_traceback of TypeError object>
|
| This is symptomatic of sys.stdin (well, whatever you're writing to)
| being open in binary mode instead of text mode. And you're passing
| a str. Try passing std.encode().
Sorry, that should be "input.encode()".
--
Cameron Simpson <cs@zip.com.au>
PCs are like a submarine, it will work fine till you open Windows. - zollie101
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: This mail never gets delivered. Any ideas why? Cameron Simpson <cs@zip.com.au> - 2013-05-27 10:28 +1000
Re: This mail never gets delivered. Any ideas why? Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-05-26 22:00 -0700
Re: This mail never gets delivered. Any ideas why? Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-05-27 02:15 -0700
Re: This mail never gets delivered. Any ideas why? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-27 12:44 +0100
Re: This mail never gets delivered. Any ideas why? Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-05-27 03:01 -0700
csiph-web