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


Groups > comp.lang.python > #75030

Re: Why does not pprint work?

X-Received by 10.182.241.169 with SMTP id wj9mr17911825obc.14.1406066723366; Tue, 22 Jul 2014 15:05:23 -0700 (PDT)
X-Received by 10.140.27.102 with SMTP id 93mr47953qgw.23.1406066723302; Tue, 22 Jul 2014 15:05:23 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h18no5791927igc.0!news-out.google.com!j6ni3315qas.0!nntp.google.com!j15no2035686qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Tue, 22 Jul 2014 15:05:23 -0700 (PDT)
In-Reply-To <mailman.12199.1406065896.18130.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=64.229.140.25; posting-account=SZ_svQkAAACWRFG2bDA-zgq8ILyl4-vo
NNTP-Posting-Host 64.229.140.25
References <6e09bc9c-d510-4076-b20d-32df796ca59e@googlegroups.com> <mailman.12199.1406065896.18130.python-list@python.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <d7e3d1fa-29d3-4408-acb0-a85f96e57c0a@googlegroups.com> (permalink)
Subject Re: Why does not pprint work?
From fl <rxjwg98@gmail.com>
Injection-Date Tue, 22 Jul 2014 22:05:23 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:75030

Show key headers only | View raw


On Tuesday, July 22, 2014 5:51:07 PM UTC-4, emile wrote:
> On 07/22/2014 02:42 PM, fl wrote:
> pprint is a module name -- you need to invoke the pprint function from 
> within the pprint module:
> pprint.pprint(board)

Thanks. I am curious about the two pprint. Is it the first pprint the name of the
module? The second pprint is the function name?

Then, how can I list all the function of pprint?

And, is there a way to list the variables I create in Python?

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


Thread

Why does not pprint work? fl <rxjwg98@gmail.com> - 2014-07-22 14:42 -0700
  Re: Why does not pprint work? Chris Angelico <rosuav@gmail.com> - 2014-07-23 07:49 +1000
  Re: Why does not pprint work? emile <emile@fenx.com> - 2014-07-22 14:51 -0700
    Re: Why does not pprint work? fl <rxjwg98@gmail.com> - 2014-07-22 15:05 -0700
      Re: Why does not pprint work? emile <emile@fenx.com> - 2014-07-22 15:17 -0700
      Re: Why does not pprint work? Chris Angelico <rosuav@gmail.com> - 2014-07-23 08:19 +1000
      Re: Why does not pprint work? Chris Kaynor <ckaynor@zindagigames.com> - 2014-07-22 15:22 -0700
  Re: Why does not pprint work? Ned Batchelder <ned@nedbatchelder.com> - 2014-07-22 22:26 -0400
  Re: Why does not pprint work? Chris Angelico <rosuav@gmail.com> - 2014-07-23 15:05 +1000
  Re: Why does not pprint work? robkotenko@gmail.com - 2014-08-03 14:34 -0700
    Re: Why does not pprint work? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-03 23:49 +0100

csiph-web