#13891: Default parameters for Graph.plot() and Graph.show()
---------------------------------+------------------------------------------
Reporter: ncohen | Owner: jason, ncohen, rlm
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.6
Component: graph theory | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Nathann Cohen | Merged in:
Dependencies: #13862 | Stopgaps:
---------------------------------+------------------------------------------
Comment (by ncohen):
Well, I guess that can be easily solved this way : would the "options"
decorator work if you used it with empty parameters ? Something like that
:
{{{
@options()
def plot ....
}}}
This way the dictionary of default arguments would be empty unless you
fill it manually, and as a result the general default options from this
patch would be used.
This being said, this @options decorator has to be mentionned in the
documentation of every function to which it is applied. Could you write an
explanation of what it does and how it is to be used ? This doc should
appear in sage/misc/decorators, toward which the doc of all functions
using @option should point so that users know that this feature exists,
and how it is to be used.
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13891#comment:14>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.