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


Groups > comp.lang.python > #7650

Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'wed,': 0.03; 'snippet': 0.07; 'am,': 0.14; 'received:209.85.214.174': 0.14; 'received :mail-iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'angelico': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:Out': 0.16; 'things.': 0.16; 'writes:': 0.19; 'header:In-Reply-To:1': 0.21; 'badly': 0.22; 'referring': 0.23; "i'm": 0.27; 'message- id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'subject:?': 0.29; 'print': 0.31; 'to:addr:python-list': 0.33; 'women': 0.33; 'list': 0.33; 'chris': 0.34; "we're": 0.34; 'subject:What': 0.35; 'probably': 0.36; 'difference': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.37; 'url:org': 0.38; 'data': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'received:209': 0.39; 'got': 0.39; 'to:addr:python.org': 0.39; 'header': 0.40; 'simply': 0.60; 'glad': 0.66; 'so:': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=lO/01i3CY1hlfa1g4iYf+ywNuKaG2T9lwoKUsJwdP+4=; b=hifoDEE8eEamb/64dwaAMlI43jVJf/oUEWduiJqjVNrHoMe+AilaUhw17L815te0yj F45CILeIMO+ZWLZl0wNIPWYxSz82YJErnz56nu+ZjAY8uVSI7J5PiUwisAo6wp1M3bmD TiMSLyBhs8kf8TYisGmYyE56HNhVT6jgEqR/E=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DW6u7so4CF9lXK6WfFdgCqrKJU8Cycl800TORXEeVcZTN2PZhRLzUdgvYNqNMZpS2N iHmh0gO1DKqAEAZ0DZzS9ym4r6Ayzf37uCx22497VkE+ekYCkQeBaiAuQSilqUorQJ1Y 1fJ8Co3rL2Aji+zC/IfQhe42/wjYi7MhM/iBA=
MIME-Version 1.0
In-Reply-To <8762o8t21e.fsf@benfinney.id.au>
References <22011833-0833-4589-8326-909f4c57f1aa@a10g2000vbz.googlegroups.com> <8762o8t21e.fsf@benfinney.id.au>
Date Wed, 15 Jun 2011 10:08:53 +1000
Subject Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.242.1308096536.11593.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 82.94.164.166
X-Trace 1308096536 news.xs4all.nl 49175 [::ffff:82.94.164.166]:58088
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7650

Show key headers only | View raw


On Wed, Jun 15, 2011 at 9:40 AM, Ben Finney <ben+python@benfinney.id.au> wrote:
> Zachary Dziura <zcdziura@gmail.com> writes:
>
>> What I want to know is how I can print out that information in a
>> column, where the header is the first line of the column, with the
>> data following underneath, like so:
>
> I'm glad you got some good replies. It probably reflects badly on me
> that my first thought was <URL:http://bash.org/?5804>.

Well *OBVIOUSLY* the difference is that that snippet is referring to
"Ms Access", and on this list we're working with "Montgomery Python",
and as we all know, women simply cannot do these things.

Chris Angelico
/me ducks the slings and arrows of outrageous sexism

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


Thread

What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? Zachary Dziura <zcdziura@gmail.com> - 2011-06-14 08:29 -0700
  Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? Terry Reedy <tjreedy@udel.edu> - 2011-06-14 12:06 -0400
    Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? Zach Dziura <zcdziura@gmail.com> - 2011-06-14 10:48 -0700
      Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? MRAB <python@mrabarnett.plus.com> - 2011-06-14 19:37 +0100
      Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? Terry Reedy <tjreedy@udel.edu> - 2011-06-15 00:53 -0400
  Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? Karim <karim.liateni@free.fr> - 2011-06-14 20:28 +0200
  Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? Ben Finney <ben+python@benfinney.id.au> - 2011-06-15 09:40 +1000
    Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns? Chris Angelico <rosuav@gmail.com> - 2011-06-15 10:08 +1000

csiph-web