Issue2888

classification
Title: -Q new always fails
Type: crash Severity: major
Components: Core Versions: Jython 2.7.1, Jython 2.7.2
Milestone:
process
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: hansiang93, jeff.allen, stefan.richthofer
Priority: normal Keywords:

Created on 2020-05-08.23:05:08 by hansiang93, last changed 2020-05-31.07:16:45 by jeff.allen.

Messages
msg13050 (view) Author: han (hansiang93) Date: 2020-05-08.23:05:08
When running jython with -Qnew, it always errors out.

Looks like there should be a break after new in the switch case to prevent the -Q option from falling through to the default failure
msg13052 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2020-05-09.07:59:53
I thought I'd be familiar with Java and Jython, but I never heard of the "-Q" option. It does not seem to be a Java option:
https://docs.oracle.com/en/java/javase/14/docs/specs/man/java.html
And not a Jython option:
https://github.com/jythontools/jython/blob/b9ff520f4f65231209d5200c22724516a72e75f2/src/shell/jython.py#L399
https://www.jython.org/registry

I suppose it is not referring to the quiet-flag:
-q: don't print version and copyright messages on interactive startup

So, what is it? Could you link a specification?
And provide some more context. Is it a launch option?
msg13054 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2020-05-09.08:04:59
Okay, Python 2 specific division option. (Had looked up Python 3 usage)

-Q arg: division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew
msg13078 (view) Author: Jeff Allen (jeff.allen) Date: 2020-05-31.07:16:45
Sorry, schoolboy error, and evidently no test to fail. Easy fix (once we are on GitHub).
History
Date User Action Args
2020-05-31 07:16:45jeff.allensetpriority: normal
resolution: accepted
messages: + msg13078
nosy: + jeff.allen
2020-05-09 08:04:59stefan.richthofersetmessages: + msg13054
2020-05-09 07:59:53stefan.richthofersetnosy: + stefan.richthofer
messages: + msg13052
2020-05-08 23:05:08hansiang93create