[Python-3000] str.decode; buffers

Georg Brandl g.brandl at gmx.net
Fri Aug 31 11:41:38 CEST 2007


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.



More information about the Python-3000 mailing list