On 11/2/07, christian.heimes <[email protected]> wrote:
> Author: christian.heimes
> Date: Fri Nov  2 16:59:04 2007
> New Revision: 58773
>
> Modified:
>    python/branches/py3k-pep3137/Lib/encodings/idna.py
>    python/branches/py3k-pep3137/Lib/encodings/punycode.py
>    python/branches/py3k-pep3137/Lib/string.py
>    python/branches/py3k-pep3137/Lib/test/string_tests.py
>    python/branches/py3k-pep3137/Lib/test/test_xml_etree.py
>    python/branches/py3k-pep3137/Lib/test/test_xml_etree_c.py
> Log:
> Fixed some more unit tests and removed some warnings. The removal of the 
> implicit str() in str.join() needs some extra tests
>

[SNIP]

> Modified: python/branches/py3k-pep3137/Lib/string.py
> ==============================================================================
> --- python/branches/py3k-pep3137/Lib/string.py  (original)
> +++ python/branches/py3k-pep3137/Lib/string.py  Fri Nov  2 16:59:04 2007
> @@ -53,7 +53,7 @@
>          raise ValueError("maketrans arguments must have same length")
>      if not (isinstance(frm, bytes) and isinstance(to, bytes)):
>          raise TypeError("maketrans arguments must be bytes objects")
> -    L = bytes(range(256))
> +    L = buffer(range(256))
>      for i, c in enumerate(frm):
>          L[c] = to[i]
>      return L
>

Why string.maketrans() was changed to return a buffer object?

-- Alexandre
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to