A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-September/017359.html below:

[Python-Dev] -Dwarn, long->double overflow (was RE: [Python-checkins] CVS: python/dist/src/Misc NEWS,1.219,1.220)

[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/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4