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


Groups > comp.lang.python > #33305

Re: Subprocess puzzle and two questions

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Subprocess puzzle and two questions
Date 2012-11-14 01:35 -0500
Organization > Bestiaria Support Staff <
References <09CE8A6B-19D5-46D6-BF36-F8BC7926A0DD@mac.com>
Newsgroups comp.lang.python
Message-ID <mailman.3668.1352874912.27098.python-list@python.org> (permalink)

Show all headers | View raw


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/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web