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


Groups > comp.lang.python > #7645

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail
From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: What is the Most Efficient Way of Printing A Dict's Contents Out In Columns?
References <22011833-0833-4589-8326-909f4c57f1aa@a10g2000vbz.googlegroups.com>
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
Date Wed, 15 Jun 2011 09:40:29 +1000
Message-ID <8762o8t21e.fsf@benfinney.id.au> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock sha1:dDKu4vTgx8ZH2yo/l5l55iJJUKk=
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Lines 14
Organization Unlimited download news at news.astraweb.com
NNTP-Posting-Host f5e77499.news.astraweb.com
X-Trace DXC=K<4l7XIl0cX1IA2mQNenURL?0kYOcDh@Z7^o:UA4R?cUH?AXjNnFo4Z]G;2>V^?kWSbEW9A[5UK?UNZ[SL`C\KgS^M[1Ygi]]RX
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7645

Show key headers only | View raw


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>.

-- 
 \      “In case of fire, do your utmost to alarm the porter.” —hotel, |
  `\                                                            Vienna |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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