[Python-3000] Need help enforcing strict str/bytes distinctions

Adam Hupp adam at hupp.org
Tue Aug 28 04:54:31 CEST 2007


This patch (already in the tracker) fixes test_csv:

http://bugs.python.org/issue1033

On 8/27/07, Guido van Rossum <guido at python.org> wrote:
> As anyone following the py3k checkins should have figured out by now,
> I'm on a mission to require all code to be consistent about bytes vs.
> str. For example binary files will soon refuse str arguments to
> write(), and vice versa.
>
> I have a patch that turns on this enforcement, but I have anout 14
> failing unit tests that require a lot of attention. I'm hoping a few
> folks might have time to help out.
>
> Here are the unit tests that still need work:
>
> test_asynchat
> test_bsddb3
> test_cgi
> test_cmd_line
> test_csv
> test_doctest
> test_gettext
> test_httplib
> test_shelve
> test_sqlite
> test_tarfile
> test_urllib
> test_urllib2
> test_urllib2_localnet
>
> Attached is the patch that makes them fail. Note that it forces an
> error when you use PyBUF_CHARACTERS when calling PyObject_GetBuffer on
> a str (PyUnicode) object.
>
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
>
> _______________________________________________
> 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/adam%40hupp.org
>
>
>


-- 
Adam Hupp | http://hupp.org/adam/


More information about the Python-3000 mailing list