This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MLModel
Recipients MLModel, georg.brandl
Date 2009-09-14.00:18:23
SpamBayes Score 2.4556286e-05
Marked as misclassified No
Message-id <1252887505.82.0.273261288247.issue6903@psf.upfronthosting.co.za>
In-reply-to
Content
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 line after each print. For example:

(Pdb) 
for n in range(3): print(n)
0
None
1
None
2
None
(Pdb) 

Seems like a (minor) bug, but if not, the example should be removed or
replaced in the documentation.
History
Date User Action Args
2009-09-14 00:18:26MLModelsetrecipients: + MLModel, georg.brandl
2009-09-14 00:18:25MLModelsetmessageid: <1252887505.82.0.273261288247.issue6903@psf.upfronthosting.co.za>
2009-09-14 00:18:24MLModellinkissue6903 messages
2009-09-14 00:18:23MLModelcreate