Re: pprint defaultdict one record per line

2013-03-17 Thread Terry Reedy
On 3/17/2013 1:45 PM, Peng Yu wrote: pprint can not print defaultdict one record per line Known issue, no progress for 2+ years. Patch not updated for default branch (3.4). Not clear what best way forward is. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: pprint defaultdict one record per line

2013-03-17 Thread Mark Lawrence
On 17/03/2013 17:45, Peng Yu wrote: Hi, pprint can not print defaultdict one record per line. Is there some other convenient way in python to print one record per line? ~/linux/test/python/man/library/pprint/function/pprint$ ./main.py {'two': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],

Re: pprint

2010-06-09 Thread Rodrick Brown
On Wed, Jun 9, 2010 at 5:01 AM, madhuri vio wrote: > sir what is the function of pprint??? > could you please help me out with that > > -- > madhuri :) > > rbr...@laptop:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "licens

Re: pprint, __repr__ and inheritance, how does it works?

2008-02-25 Thread Gabriel Genellina
En Mon, 25 Feb 2008 10:19:43 -0200, Jorge Vargas <[EMAIL PROTECTED]> escribió: > Hello list, I'm having a little bit of trouble making this all work > together. > > I have a base class in which I want to define the __repr__ for all > subclasses which in this case will be to output all the __di

Re: pprint: "...thank small children who sleep at night."

2006-09-20 Thread Adam Jones
Brian L. Troutwine wrote: > The heading comment to pprint reads: > > # This is a simple little module I wrote to make life easier. I > didn't > # see anything quite like it in the library, though I may have > overlooked > # something. I wrote this when I was trying to read some heavily > nest

Re: pprint: "...thank small children who sleep at night."

2006-09-20 Thread John Salerno
Brian L. Troutwine wrote: > thank small children who sleep at night. That seems like the kind of sentence that could become a tagline or something, and you just have to be in the know to understand where it comes from. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: pprint: "...thank small children who sleep at night."

2006-09-20 Thread Fredrik Lundh
Brian L. Troutwine wrote: > Is the last sentence an obscure reference or in-joke? Can someone > explain it? I don't get it. do you have small kids? tried doing serious programming while they're still awake? -- http://mail.python.org/mailman/listinfo/python-list

Re: pprint: "...thank small children who sleep at night."

2006-09-19 Thread Steve Holden
Paul McGuire wrote: > "Brian van den Broek" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Brian L. Troutwine said unto the world upon 19/09/06 05:30 PM: >> >>>The heading comment to pprint reads: >>> >>># This is a simple little module I wrote to make life easier. I >>>didn'

Re: pprint: "...thank small children who sleep at night."

2006-09-19 Thread Paul McGuire
"Brian van den Broek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Brian L. Troutwine said unto the world upon 19/09/06 05:30 PM: >> The heading comment to pprint reads: >> >> # This is a simple little module I wrote to make life easier. I >> didn't >> # see anything quite like

Re: pprint: "...thank small children who sleep at night."

2006-09-19 Thread Brian van den Broek
Brian L. Troutwine said unto the world upon 19/09/06 05:30 PM: > The heading comment to pprint reads: > > # This is a simple little module I wrote to make life easier. I > didn't > # see anything quite like it in the library, though I may have > overlooked > # something. I wrote this when I w