FWIW I think "s".find(b"b") should also raise a TypeError, but I don't have the guts to tackle that today. On 8/31/07, Guido van Rossum <guido at python.org> wrote: > Yes on both accounts. Checkin coming up. >> On 8/31/07, Georg Brandl <g.brandl at gmx.net> wrote: > > Two short issues: > > > > * Shouldn't str.decode() be removed? Every call to it says > > "TypeError: decoding str is not supported". > > > > * Using e.g. b"abc".find("a") gives "SystemError: can't use str as char buffer". > > This should be a TypeError IMO. > > > > Georg > > > > -- > > Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. > > Four shall be the number of spaces thou shalt indent, and the number of thy > > indenting shall be four. Eight shalt thou not indent, nor either indent thou > > two, excepting that thou then proceed to four. Tabs are right out. > > > > _______________________________________________ > > Python-3000 mailing list > > Python-3000 at python.org > > http://mail.python.org/mailman/listinfo/python-3000 > > Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org > > >>> -- > --Guido van Rossum (home page: http://www.python.org/~guido/) > -- --Guido van Rossum (home page: http://www.python.org/~guido/)