Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Christian Heimes
Guido van Rossum wrote: > Currently (in 3.0), "".join() automatically applies str() to the > items of , *except* if the item is a bytes instance -- then it > raises a TypeError. Is that proper behavior? The alternative is to > uniformly apply str(), which for bytes returns a string of the form > "b

Re: [Python-3000] status of buildbots

2007-11-02 Thread Adam Hupp
On 10/31/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > We've made a lot of progress with the tests. Several buildbots are > green. http://python.org/dev/buildbot/3.0/ > > There are some tests that are unstable, at least: >test_asynchat test_urllib2net test_xmlrpc Here's a patch for the test_

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 2, 2007, at 8:18 AM, Adam Hupp wrote: > I prefer removing the str call on .join entirely. Is there any other > string method that implicitly str's it's argument? I can't think of > any. If this works I would expect that concatenation also i

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Guido van Rossum
OK, that's what I'll do. I was never really comfortable with it, and now I know why. On 11/2/07, Chris Monson <[EMAIL PROTECTED]> wrote: > +1 on removing implicit str calls from join altogether. > > > On 11/2/07, Adam Hupp <[EMAIL PROTECTED]> wrote: > > On 11/1/07, Guido van Rossum <[EMAIL PROTECT

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Chris Monson
+1 on removing implicit str calls from join altogether. On 11/2/07, Adam Hupp <[EMAIL PROTECTED]> wrote: > On 11/1/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > The alternative is to uniformly apply str(), which for bytes returns a > string of the form > > "b'...'" or "buffer(b'...')" (de

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Oleg Broytmann
On Thu, Nov 01, 2007 at 07:37:29PM -0700, Jeffrey Yasskin wrote: > I'd na??vely vote for having "".join([non-strings]) raise a TypeError > unconditionally like it did in 2.5. +1 for always TypeError. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Adam Hupp
On 11/1/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > The alternative is to uniformly apply str(), which for bytes returns a string > of the form > "b'...'" or "buffer(b'...')" (depending on whether the bytes are > immutable or not). Given that we killed the exception for "" == b"" > earlier,

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Bill Janssen
> +1 on removing implicit str calls from join altogether. +1 from me, too. Bill ___ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/arch

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Guido van Rossum
Too late. It's already gone. ;-) On 11/2/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > +1 on removing implicit str calls from join altogether. > > +1 from me, too. > > Bill > -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Pytho

Re: [Python-3000] PEP3137: "".encode() return type

2007-11-02 Thread Christian Heimes
Guido van Rossum wrote: > OK, after I'm done with the merge from hell (I decided to merge from > the trunk to py3k). r58763 is causing a stack dump when I run the unit test suite (Ubuntu 7.10, UCS4 build, no debug). $ ./python Lib/test/regrtest.py test_ftplib test_ftplib Segmentation fault (core

Re: [Python-3000] pickle compatibility between 2.x and 3.0

2007-11-02 Thread Christian Heimes
Gregory P. Smith wrote: > Brainstorming here... how about an optional callable argument when > unpickling to let the developers write their own "magic guess" function? > This callable should take a single parameter and its return value would be > used as the unpickled string. The general idea is g

[Python-3000] need help fixing broken tests in py3k-pep3137 branch

2007-11-02 Thread Guido van Rossum
In the py3k-pep3137 branch I've been working on the implementation of PEP 3137. The work is largely done, but I'm stuck with about 20 failing tests, and very little time this weekend to work on these. Here's the list: test_array test_asynchat test_asyncore test_bsddb3 test_ctypes test_email test_e

Re: [Python-3000] What to do about "".join([b""])?

2007-11-02 Thread Gregory P. Smith
and there was much rejoicing! On 11/2/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Too late. It's already gone. ;-) > > On 11/2/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > > +1 on removing implicit str calls from join altogether. > > > > +1 from me, too. > > > > Bill > > > > > -- > --Gu

Re: [Python-3000] need help fixing broken tests in py3k-pep3137 branch

2007-11-02 Thread Brett Cannon
On 11/2/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > In the py3k-pep3137 branch I've been working on the implementation of PEP > 3137. > The work is largely done, but I'm stuck with about 20 failing tests, > and very little time this weekend to work on these. Here's the list: > I decided to