[Python-Dev] Changing -Q to warn for 2.5?

Giovanni Bajo rasky at develer.com
Mon Mar 27 09:18:56 CEST 2006


Neal Norwitz <nnorwitz at gmail.com> wrote:

> """
> The -Q command line option takes a string argument that can take four
> values: "old", "warn", "warnall", or "new".  The default is "old" in
> Python 2.2 but will change to "warn" in later 2.x versions.
> """
>
> I'm not sure this is worth in 2.x.  If we aren't going to change it,
> we should update the PEP.  OTOH, people ask how they can find integer
> division in their code.  Even though they can use the flag themselves,
> I wonder if anyone who wants help finding integer division really uses
> the flag.

-1 gratuitous breakage. There's noting really wrong or dangerous about the old
semantic, it just won't be the one used by Python 3.0. While it's nice to have
an option to help forward porting, I don't think we should force it.

Giovanni Bajo



More information about the Python-Dev mailing list