#14248: Add case sensitive to global options
------------------------------------+---------------------------------------
Reporter: tscrim | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.9
Component: misc | Resolution:
Keywords: global options | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Travis Scrimshaw | Merged in:
Dependencies: #13605 | Stopgaps:
------------------------------------+---------------------------------------
Comment (by andrew.mathas):
Replying to [comment:6 tscrim]:
> My original thought on giving both options was in case someone wanted to
force lower/uppercase display. Although this ticket came about because of
#2023 in which I needed to have the ability to leave it as uppercase.
Instead what we could do is have a second parameter `display_type` which
could take one of the following values: - ''' uppercase''' - '''
lowercase''' - ''' input''' - the exact user's input - ''' value''' -
the exact value given in the code (assuming we have a set list of possible
values)
I think that we should keep it as simple as possible: using two parameters
to control this strikes me as being a little OTT. In light of Andrey's
comments I vote for having case_sensitive=True/False and also following
Travis's suggestion that the case of the default value is preserved in the
documentation. I think that this is the most intuitive approach and that
it also meets Travis' requirements for #2023. In terms of the code, it is
easy to make it appear to the user that the default version of the option,
together with its supplied choice of case, is always being used even
though the option may not be case sensitive.
Btw, I am fairly sure that the documentation already does mention that all
options are forced to be lower case. When I do the review I'll go through
and fix up some of the many typos that are there and also make sure that
this is addressed.
Andrew
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14248#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.