On Mon, Jan 11, 2010 at 23:55, Guido van Rossum <gu...@python.org> wrote: > +1 from me. (With the caveat that "time will tell" is definitely the > ultimate answer. Plans may change unexpectedly, even though we don't > expect them to.) > > PS. I'm surprised that Martin thinks that the -3 mode in 2.6 is not > helpful. But I trust he has ported a lot more code to 3.x than I have > personally. Are there other experiences?
It doesn't warn for that many of the unportable problems, but I'm not sure it can warn for them either. It's certainly helpful, just not very much. :) I think the biggest help was added in 2.6.2, and that's warning for old integer division. It will also warn for modules that aren't supported anymore, if I remember correctly, and that's often helpful. But it won't warn for real tricky problems, like binary vs text in strings, and I don't see how it can either. And, I just realized, it doesn't warn for you using cmp or __cmp__ either, and 2to3 won't fix that, so it should actually warn for it. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com