[Python-Dev] -Dwarn, long->double overflow (was RE: [Python-checkins] CVS: python/dist/src/Misc NEWS,1.219,1.220)
Guido van Rossum
guido@python.org
Sat, 01 Sep 2001 22:10:10 -0400
> >> + + A new command line option, -D<arg>, is added ...
>
> I don't know if it is worth considering, but jython already uses the -D
> option to set registry properties on the command line.
>
> -Dprop=v : Set the property `prop' to value `v'
>
> Jython would have to come up with a command line option different from
> -D to control division behavior.
Darn. I wished you'd said something earlier -- I put this in PEP 237
weeks ago.
Does Jython generally try to follow Python's command line options?
Would it make sense to define a Jython property for the division
behavior? Then I could change the syntax to -Ddivision=old,
-Ddivision=warn, -Ddivision=new. That's a bit long, but acceptable.
Otherwise, the only mnemonic I can think of would be -/old, -/warn,
-/new. But that may be confusing for some users who are expecting
options to be letters. I guess we could use -q for quotient.
--Guido van Rossum (home page: http://www.python.org/~guido/)