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/017362.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)Finn Bock bckfnn@worldonline.dk
Sun, 02 Sep 2001 08:37:07 GMT
>> >> + + 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.

[GvR]
>Darn.  I wished you'd said something earlier -- I put this in PEP 237
>weeks ago.

So many peps and so little time. Following the discussion of peps like
this is a bit of a strain when I really don't care what division return.
I'll try to be more proactive about new pep revisions in the future.

>Does Jython generally try to follow Python's command line options?

We try to. -i, -S, -W, -v and -c are the same. A very recently added -E
options have a different semantic but that is a bug. In addition we have
the options -D, -jar, --help and --version.

>Would it make sense to define a Jython property for the division
>behavior?

That would work.

>Then I could change the syntax to -Ddivision=old,
>-Ddivision=warn, -Ddivision=new.  That's a bit long, but acceptable.

Our normal property names are a lot longer:

   -Dpython.security.respectJavaAccessibility=false
   -Dpython.options.showJavaExceptions=true

because there are situations where the jython properties must live in
the same namespace as the properties for java, corba etc.

As a practical solution, -Ddivision=warn world work fine.

regards,
finn



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