[issue6903] pdb - print in for iteration prints None after printing

2009-09-16 Thread Georg Brandl
Georg Brandl added the comment: Actually, Guido hates the Nones. :) Fixed in r74839. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6903] pdb - print in for iteration prints None after printing

2009-09-16 Thread Mitchell Model
Mitchell Model added the comment: No problem with the None's -- I see your point about that. Just that maybe the alias example should point out that the Nones will be printed so people won't be surprised and try to figure out what's wrong. --- Mitchell On Sep 16, 2009, at 5:56 AM, Geo

[issue6903] pdb - print in for iteration prints None after printing

2009-09-16 Thread Georg Brandl
Georg Brandl added the comment: This is caused by the special displayhook that pdb uses. Normally, the displayhook suppresses output when it would print None; this is not done in pdb's displayhook. This was a conscious decision, because it can remove confusion when you try to get variable value

[issue6903] pdb - print in for iteration prints None after printing

2009-09-13 Thread Mitchell Model
New submission from Mitchell Model : Near the bottom of the library documentation for pdb there is an example of a very useful alias: alias pi for k in %1.__dict__.keys(): print("%1.",k,"=",%1.__dict__[k]) It turns out that doing print in a for loop in pdb results in None being printed on a lin