[issue6743] Add function compatible with print to pprint module

2013-04-11 Thread Ezio Melotti
Ezio Melotti added the comment: To clarify, the request seems reasonable to me, but the use cases are somewhat limited and it's not obvious what the best implementation should be. Given that others are -1 on this, I suggested to close it rather than leaving it open and languishing. -

[issue6743] Add function compatible with print to pprint module

2013-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Closing as per Ezio's suggestion on #python-dev. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ __

[issue6743] Add function compatible with print to pprint module

2013-04-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: -1 from me as well. Such kind of debatable (in terms of usefulness and inclusion) things are usually better off being served by a custom function in user's code. -- ___ Python tracker

[issue6743] Add function compatible with print to pprint module

2013-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > But then, it doesn't have anything similar to print() > > It has the same signature. Isn't that the point of the whole issue? This is becoming stupid. How about making it the same signature as sum() or max() too? -- __

[issue6743] Add function compatible with print to pprint module

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: > But then, it doesn't have anything similar to print() It has the same signature. Isn't that the point of the whole issue? -- ___ Python tracker ___

[issue6743] Add function compatible with print to pprint module

2013-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Amaury Forgeot d'Arc added the comment: > > > But it can't work. pprint() uses all the width for a single object. > > How are you supposed to print multiple objects? > > On multiple lines? But then, it doesn't have anything similar to print() except that it

[issue6743] Add function compatible with print to pprint module

2013-04-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > But it can't work. pprint() uses all the width for a single object. > How are you supposed to print multiple objects? On multiple lines? -- ___ Python tracker _

[issue6743] Add function compatible with print to pprint module

2013-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: the desired behavior is to have a function with the same > signature as print (so multiple objects to print are supported), but > which calls pprint.pformat instead of str. But it can't work. pprint() uses all the width for a single object. How are yo

[issue6743] Add function compatible with print to pprint module

2013-04-02 Thread Éric Araujo
Éric Araujo added the comment: Antoine: the desired behavior is to have a function with the same signature as print (so multiple objects to print are supported), but which calls pprint.pformat instead of str. It lets people monkey-patch builtins.print or somemodule.print with pprint.print and

[issue6743] Add function compatible with print to pprint module

2013-04-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue6743] Add function compatible with print to pprint module

2013-04-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Maybe pprint.print() should specify sep='\n' by default? -- ___ Python tracker ___ ___ Python-b

[issue6743] Add function compatible with print to pprint module

2013-04-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6743] Add function compatible with print to pprint module

2013-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't understand how this is supposed to work or what the point is. By construction, pprint prints a *single* object, and it will split the representation over several lines if necessary. Therefore the print() semantics (print several objects one after anoth

[issue6743] Add function compatible with print to pprint module

2013-04-01 Thread Éric Araujo
Éric Araujo added the comment: Still waiting for a review. -- keywords: +needs review stage: needs patch -> patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ _

[issue6743] Add function compatible with print to pprint module

2013-04-01 Thread Mark Lawrence
Mark Lawrence added the comment: @Éric I'd be interested in using this as print/pprint are part of my debugging kit, so could you take this forward please? -- nosy: +BreamoreBoy ___ Python tracker _

[issue6743] Add function compatible with print to pprint module

2011-12-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6743] Add function compatible with print to pprint module

2011-12-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6743] Add function compatible with print to pprint module

2011-07-15 Thread Éric Araujo
Changes by Éric Araujo : -- title: pprint.pprint should support no objects to print blank lines & allow args -> Add function compatible with print to pprint module ___ Python tracker ___