Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33313
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <kushal.kumaran@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'objects,': 0.07; '__init__': 0.09; 'c2pwrite': 0.09; 'errread,': 0.09; 'file-like': 0.09; 'instance.': 0.09; 'objects.': 0.09; 'stderr': 0.09; 'stdout': 0.09; 'subject:files': 0.09; 'wrong,': 0.09; 'errwrite)': 0.16; 'fileno': 0.16; 'wrote:': 0.17; 'sender:addr:gmail.com': 0.18; 'skip:" 30': 0.20; '"",': 0.22; 'work.': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; '(most': 0.27; 'wonder': 0.27; 'received:209.85.210.46': 0.27; "doesn't": 0.28; 'actual': 0.28; '>>>>': 0.29; 'subject:size': 0.29; 'writes:': 0.29; 'file': 0.32; 'could': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'or,': 0.34; 'nov': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'think': 0.40; 'received:117': 0.75; 'clearly.': 0.84; 'to:name:python': 0.84; 'subject:limited': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=lanN6PCTjgOikLTzYG3PsScNW/RTBCEWUZixUFDpQYY=; b=ajmvAgg19dtXgcLGWULCEz/XLumHgNGygACMWk6VcNoGLZm0askUYekGJ0YJ85gNbo fl1nG3jojTGhlWpCXySW7b+5n/r1/pe+2uDqg6qXwgLkl0WUEEo74rl/kbH4gTeS1DBM R14WQSIRfdbwlxUqmRkJxV9FQcVkcnqaXw0umnjQ8Sow1Rks8L7xrWZUxukdj4q/Qf7D IVZ02m+dds1DTaz6drIxDBJ3ZO3GvE+DVTFzltEljQJjgyvQ2spiwDLCh0VqaIczy2DF UW3Oxrs9w2/a10FFObxq3h4Ex00UYz9fJQ3AdLPr7aEvS9O+EQhhsPaC0I4F/pwdDSv/ RmgQ== |
| Sender | Kushal Kumaran <kushal.kumaran@gmail.com> |
| From | Kushal Kumaran <kushal.kumaran+python@gmail.com> |
| To | Python <python-list@python.org> |
| Subject | Re: creating size-limited tar files |
| In-Reply-To | <CALwzidkfARHC5Twpw01xQrOWe4msWdLSH2B=5i4oMwadPyQniA@mail.gmail.com> |
| References | <mailman.3381.1352308430.27098.python-list@python.org> <509ab0fa$0$6636$9b4e6d93@newsspool2.arcor-online.net> <roy-2C9B4D.15322307112012@news.panix.com> <509AD812.2060605@gmail.com> <CAHVvXxTH7WrfT41GDj15f9FS4eguBF2dj4Khpu_vw2TWMkvPYg@mail.gmail.com> <CAF_E5JbY71J3ix9PiXu7wvvkzc_aG9ZtdwKkuxXXAU-SFeRDsw@mail.gmail.com> <CAF_E5JYJ7Fw4b4z81454k9HwmjZ49qjx48fC_f+skcphCDNUeA@mail.gmail.com> <CAF_E5Jas3ObdX=Mhusj63R_Xcm0e1JwjPEuOgZoggON6-cttjA@mail.gmail.com> <CAF_E5JZFJ+TPmF0LUEFU8AVqbOWfJbH9Yy60CKkcrDNnWATiVg@mail.gmail.com> <CALwzidnrTcSK+Z0cGf5WpTN2sLqVgbpbt2i1DcdUFnGQYEvKQg@mail.gmail.com> <87lie4lnxr.fsf@nitrogen.i-did-not-set--mail-host-address--so-tickle-me> <CALwzidkfARHC5Twpw01xQrOWe4msWdLSH2B=5i4oMwadPyQniA@mail.gmail.com> |
| User-Agent | Notmuch/0.14 (http://notmuchmail.org) Emacs/24.1.1 (x86_64-pc-linux-gnu) |
| Date | Wed, 14 Nov 2012 14:21:32 +0530 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| 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.3673.1352883102.27098.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1352883102 news.xs4all.nl 6972 [2001:888:2000:d::a6]:52552 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33313 |
Show key headers only | View raw
Ian Kelly <ian.g.kelly@gmail.com> writes: > On Tue, Nov 13, 2012 at 11:05 PM, Kushal Kumaran > <kushal.kumaran+python@gmail.com> wrote: >> Or, you could just change the p1's stderr to an io.BytesIO instance. >> Then call p2.communicate *first*. > > This doesn't seem to work. > >>>> b = io.BytesIO() >>>> p = subprocess.Popen(["ls", "-l"], stdout=b) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib64/python3.2/subprocess.py", line 711, in __init__ > errread, errwrite) = self._get_handles(stdin, stdout, stderr) > File "/usr/lib64/python3.2/subprocess.py", line 1112, in _get_handles > c2pwrite = stdout.fileno() > io.UnsupportedOperation: fileno > > I think stdout and stderr need to be actual file objects, not just > file-like objects. Well, well, I was wrong, clearly. I wonder if this is fixable. -- regards, kushal
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-07 17:13 +0000
Re: creating size-limited tar files Neil Cerutti <neilc@norwich.edu> - 2012-11-07 18:40 +0000
Re: creating size-limited tar files Alexander Blinne <news@blinne.net> - 2012-11-07 20:05 +0100
Re: creating size-limited tar files Roy Smith <roy@panix.com> - 2012-11-07 15:32 -0500
Re: creating size-limited tar files Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-11-07 21:52 +0000
Re: creating size-limited tar files Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-11-07 23:15 +0000
Re: creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-08 10:11 +0000
Re: creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-08 10:29 +0000
Re: creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-09 10:39 +0000
Re: creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-13 10:31 +0000
Re: creating size-limited tar files Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-13 09:07 -0700
Re: creating size-limited tar files Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-13 09:25 -0700
Re: creating size-limited tar files Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-13 09:30 -0700
Re: creating size-limited tar files Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2012-11-14 11:35 +0530
Re: creating size-limited tar files Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-14 00:22 -0700
Re: creating size-limited tar files Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2012-11-14 14:21 +0530
Re: creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-14 11:52 +0000
Re: creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-14 15:56 +0000
Re: creating size-limited tar files Dave Angel <d@davea.name> - 2012-11-14 11:10 -0500
Re: creating size-limited tar files andrea crotti <andrea.crotti.0@gmail.com> - 2012-11-14 16:16 +0000
Re: creating size-limited tar files Dave Angel <d@davea.name> - 2012-11-14 11:33 -0500
Re: creating size-limited tar files Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-11-14 20:43 +0000
Re: creating size-limited tar files Dave Angel <d@davea.name> - 2012-11-14 15:57 -0500
csiph-web