Message92588
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. |
|
Date |
User |
Action |
Args |
2009-09-14 00:18:26 | MLModel | set | recipients:
+ MLModel, georg.brandl |
2009-09-14 00:18:25 | MLModel | set | messageid: <1252887505.82.0.273261288247.issue6903@psf.upfronthosting.co.za> |
2009-09-14 00:18:24 | MLModel | link | issue6903 messages |
2009-09-14 00:18:23 | MLModel | create | |
|