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

Guido van Rossum guido at python.org
Wed Aug 29 16:29:36 CEST 2007


Stop, I already fixed it. Sorry!

On 8/29/07, Jeremy Hylton <jeremy at alum.mit.edu> wrote:
> On 8/29/07, Guido van Rossum <guido at python.org> wrote:
> > On 8/28/07, Lars Gustäbel <lars at gustaebel.de> wrote:
> > > On Mon, Aug 27, 2007 at 05:16:37PM -0700, Guido van Rossum 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_tarfile
> > >
> > > Fixed in r57608.
> >
> > Thanks!
> >
> > I fixed most others (I think); we're down to test_asynchat and
> > test_urllib2_localnet failing. But I've checked in the main patch
> > enforcing stricter str/bytes, just to get things rolling.
>
> I'm working on test_urllib2_localnet now.
>
> Jeremy
>
> >
> >
> > --
> > --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/jeremy%40alum.mit.edu
> >
>


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


More information about the Python-3000 mailing list