On Wed, 19 Oct 2005 09:39:48 +0800, James Gan wrote:

> Hi, Steven
> 
> :) width parameter do the magic :
> 
>  >>> pprint.pprint([1,2,3,4,[0,1,2,[3,4]],5], width=1,indent=4)
> [   1,
>      2,
>      3,
>      4,
>      [   0,
>          1,
>          2,
>          [   3,
>              4]],
>      5]
>  >>>

That's not what I get. What are you using?

py> pprint.pprint([1,2,3,4,[0,1,2], 5], width=1, indent=4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: pprint() got an unexpected keyword argument 'width'



-- 
Steven.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to