[Python-3000] Warning for 2.6 and greater

Neal Norwitz nnorwitz at gmail.com
Mon Jan 8 07:07:51 CET 2007


On 1/7/07, Anthony Baxter <anthony at interlink.com.au> wrote:
> I've been thinking a little about how and where we'd add warnings to
> 2.6 and later for things that will break in 3.0. My first idea is
> to add a command line option '-3' (or maybe '-warn3') implemented
> as "from __future__ import py3k". We can then put code in that
> optionally generates a warning if this is set.
>
> I'm concerned that we don't make this check too expensive, though -

I have re-implemented warnings in C which should speed things up a bit
(including start up).  I need to polish it off and up load it.

n


More information about the Python-3000 mailing list