Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33305 > unrolled thread

Re: Subprocess puzzle and two questions

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2012-11-14 01:35 -0500
Last post2012-11-14 01:35 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Subprocess puzzle and two questions Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-11-14 01:35 -0500

#33305 — Re: Subprocess puzzle and two questions

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2012-11-14 01:35 -0500
SubjectRe: Subprocess puzzle and two questions
Message-ID<mailman.3668.1352874912.27098.python-list@python.org>
On Tue, 13 Nov 2012 22:34:55 -0500, wrw@mac.com declaimed the following
in gmane.comp.python.general:

> However, if I try the same operation in the python interpreter using subprocess.Popen like so:

	<snip> 

> I get three digits, BUT that third digit isn't real, the format operation has simply appended a zero.  So:
>
> 1) how can I recover that third digit from the subprocess?
> 2) is there a more pythonic way to do what I'm trying to do?
>
	Python doesn't do anything to the data passed... How could it? It
doesn't know what the spawned program is going to produce.

	What is more likely is that your system's implementation of  "time"
detects that it is NOT connected to a console and IT is changing the
formatting that it outputs.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web