Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10806
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Peter Otten <__peter__@web.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: attach cString to memoryview? |
| Followup-To | comp.lang.python |
| Date | Wed, 03 Aug 2011 15:41:55 +0200 |
| Organization | None |
| Lines | 16 |
| Message-ID | <j1bj73$a33$1@solani.org> (permalink) |
| References | <4232b39e-e07c-4e12-92e3-1e7b035422a6@a2g2000prf.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Trace | solani.org 1312378915 10339 eJwFwQERADEIAzBL42kLyOHY8C/hE7pMExAFLhfpnqhnOHVZOTDYOq46Ym8D7BMZz6c99f38kBAk (3 Aug 2011 13:41:55 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Wed, 3 Aug 2011 13:41:55 +0000 (UTC) |
| X-User-ID | eJwNxtEBRDEEBMCWImuRcnD0X8K7+RrCxNrVaMrlnv5XjufoeTEFq73AWYEws2ck6PmirjQL+sM6hVtxOXgfPd4U9w== |
| Cancel-Lock | sha1:e1nPZ32VymwjQOKGjgYUeCvBsZk= |
| X-NNTP-Posting-Host | eJwFwQkBwDAIA0BL40mgcoAW/xJ2B6Nwwgk6FvvubUFs6Hl+yOwywzTHtxT+NMrEz9zafCVgZOonF/upJdhfni1YSA91f9fZGaE= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:10806 |
Followups directed to: comp.lang.python
Show key headers only | View raw
Phlip wrote: > q = cStringIO.StringIO() > p = Popen(cmd, shell=True, stdout=q, bufsize=4096) > The Subject line problem refers to how to get rid of this: > > AttributeError: 'cStringIO.StringO' object > has no attribute 'fileno' What's wrong with subprocess.PIPE? >>> import subprocess as sp >>> p = sp.Popen(["ls", "/usr/lib/python2.6"], stdout=sp.PIPE) >>> print p.communicate()[0]
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
attach cString to memoryview? Phlip <phlip2005@gmail.com> - 2011-08-03 06:13 -0700 Re: attach cString to memoryview? Peter Otten <__peter__@web.de> - 2011-08-03 15:41 +0200
csiph-web