I found a way to fix the bug; look at the attached patch. Although, I
am not sure it was correct way to fix it. The problem was due to str8
that is  recognized as an instance of `str'.

-- Alexandre

On 6/5/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
On 6/5/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote:
> On 6/5/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> > I'd rather see them here than in SF, SF is a pain to use.
> >
> > But unless the bugs prevent you from proceeding, you could also ignore them.
>
> The first bug that I reported today (the one about `make`) stop me
> from running the test suite. So, can't really test the _string_io and
> _bytes_io modules.

I tried to reproduce it but it works fine for me -- I'm on Ubuntu
dapper (with some Google mods) on a 2.6.18.5-gg4 kernel.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)

Index: Lib/cmd.py
===================================================================
--- Lib/cmd.py	(revision 55807)
+++ Lib/cmd.py	(working copy)
@@ -334,7 +334,7 @@
                         cmds_undoc.append(cmd)
             self.stdout.write("%s\n"%str(self.doc_leader))
             self.print_topics(self.doc_header,   cmds_doc,   15,80)
-            self.print_topics(self.misc_header,  help.keys(),15,80)
+            self.print_topics(self.misc_header,  list(help.keys()),15,80)
             self.print_topics(self.undoc_header, cmds_undoc, 15,80)
 
     def print_topics(self, header, cmds, cmdlen, maxcol):
@@ -354,8 +354,9 @@
         if not list:
             self.stdout.write("<empty>\n")
             return
+
         nonstrings = [i for i in range(len(list))
-                        if not isinstance(list[i], str)]
+                        if not isinstance(list[i], basestring)]
         if nonstrings:
             raise TypeError, ("list[i] not a string for i in %s" %
                               ", ".join(map(str, nonstrings)))
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to