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


Groups > comp.lang.python > #27659

Re: writelines puzzle

Path csiph.com!usenet.pasdenom.info!gegeweb.org!noc.nerim.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <malaclypse2@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'output': 0.04; 'python': 0.09; "'...'": 0.09; '22,': 0.09; 'output,': 0.09; 'looked': 0.10; 'aug': 0.13; 'file,': 0.15; '...,': 0.16; 'jerry': 0.16; 'numpy': 0.16; 'wing': 0.16; 'wed,': 0.16; 'string': 0.17; 'wrote:': 0.17; 'to:name:python-list@python.org': 0.20; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'guess': 0.27; 'received:209.85.210.46': 0.27; 'received:mail-pz0-f46.google.com': 0.27; 'message- id:@mail.gmail.com': 0.27; 'actual': 0.28; 'arrays': 0.29; 'cat': 0.29; 'getting': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'lists.': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'contents.': 0.65; 'middle': 0.66; 'fact,': 0.69; 'william': 0.78; '160': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uiBYcYPxh6riOvZVKfSfI5VJ6Jomx52FJacyt3TlupQ=; b=y8yDZmS/LIc/5I0RCieVXLLe0qjtGChkPWlV6h9Q9nIz7UXNadOysfCbtR5NDEZLob p/605z2U80VlndPLig89Me3WTirQ3RGV75HRTQVFagJ7C5r46Ij35IPGV0tVfdi1DTg+ QzT7CjVZV0DXmdNpzwrSiiYmEnns3uWNl1X0mPLQDiIL9K1bZheBuTbyKxcWVrLbRR7v qxip6+mJrBPgQO7nP+dlQvtdDsBgz4XnvfpAe1Fg2r9Ci9xRsb3CVR77wAeeXhdYzj3K GzdQC7u6hPE8B/+1tqdT/zwVv5AFZBx+h9c3wjyOSP530EzWPWFByOpl4Z3ix1OGCHSU +KIQ==
MIME-Version 1.0
In-Reply-To <290CC961-63B7-4B9B-8822-AE7CBB5A5AED@mac.com>
References <290CC961-63B7-4B9B-8822-AE7CBB5A5AED@mac.com>
Date Wed, 22 Aug 2012 13:28:38 -0400
Subject Re: writelines puzzle
From Jerry Hill <malaclypse2@gmail.com>
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.3669.1345656521.4697.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1345656521 news.xs4all.nl 6862 [2001:888:2000:d::a6]:52957
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:27659

Show key headers only | View raw


On Wed, Aug 22, 2012 at 11:38 AM, William R. Wing (Bill Wing)
<wrw@mac.com> wrote:
> Much to my surprise, when I looked at the output file, it only contained 160 characters.  Catting produces:
>
> StraylightPro:Logs wrw$ cat RTT_monitor.dat
> 2354[ 734716.72185185  734716.72233796  734716.72445602 ...,  734737.4440162
>   734737.45097222  734737.45766204][ 240.    28.5   73.3 ...,   28.4   27.4   26.4]

If that's the full output, then my guess is that x_dates and y_rtt are
not actual python lists.  I bet they are, in fact, numpy arrays and
that the string representation of those arrays (what you're getting
from str(x_dates), etc) include the '...' in the middle instead of the
full contents.

Am I close?

-- 
Jerry

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


Thread

Re: writelines puzzle Jerry Hill <malaclypse2@gmail.com> - 2012-08-22 13:28 -0400

csiph-web