[Python-3000] pdb help is broken in py3k-struni branch

Alexandre Vassalotti alexandre at peadrop.com
Wed Jun 6 01:51:44 CEST 2007


Hi again,

I just found yet another bug in py3k-struni branch. This one about the
pdb module.

Should I start to report these bugs to the bug tracker, instead? At
this pace, I will flood the mailing list. :)

-- Alexandre

Python 3.0x (py3k-struni, Jun  5 2007, 18:41:44)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> raise TypeError
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError
>>> import pdb
>>> pdb.pm()
> <stdin>(1)<module>()
(Pdb) help

Documented commands (type help <topic>):
========================================
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alex/src/python.org/py3k-struni/Lib/pdb.py", line 1198, in pm
    post_mortem(sys.last_traceback)
  File "/home/alex/src/python.org/py3k-struni/Lib/pdb.py", line 1195,
in post_mortem
    p.interaction(t.tb_frame, t)
  File "/home/alex/src/python.org/py3k-struni/Lib/pdb.py", line 192,
in interaction
    self.cmdloop()
  File "/home/alex/src/python.org/py3k-struni/Lib/cmd.py", line 139, in cmdloop
    stop = self.onecmd(line)
  File "/home/alex/src/python.org/py3k-struni/Lib/pdb.py", line 242, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "/home/alex/src/python.org/py3k-struni/Lib/cmd.py", line 216, in onecmd
    return func(arg)
  File "/home/alex/src/python.org/py3k-struni/Lib/cmd.py", line 336, in do_help
    self.print_topics(self.doc_header,   cmds_doc,   15,80)
  File "/home/alex/src/python.org/py3k-struni/Lib/cmd.py", line 345,
in print_topics
    self.columnize(cmds, maxcol-1)
  File "/home/alex/src/python.org/py3k-struni/Lib/cmd.py", line 361,
in columnize
    ", ".join(map(str, nonstrings)))
TypeError: list[i] not a string for i in 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
44, 45
>>>


More information about the Python-3000 mailing list