#13149: Function names used as default parameters are incorrectly quoted in
documentation
-----------------------------+----------------------------------------------
   Reporter:  mjo            |             Owner:  mvngu   
       Type:  defect         |            Status:  new     
   Priority:  major          |         Milestone:  sage-5.2
  Component:  documentation  |          Keywords:          
Work issues:                 |   Report Upstream:  N/A     
  Reviewers:                 |           Authors:          
  Merged in:                 |      Dependencies:          
   Stopgaps:                 |  
-----------------------------+----------------------------------------------
 This shows up in #11785. We define a function,

 {{{
 def string_length(expr):
     """
     Returns the length of ``expr`` after converting it to a string.
     ...
 }}}

 And then use that as the default for another function's argument:

 {{{
 def simplify_rectform(self, complexity_measure = string_length):
     r"""
     Attempt to simplify this expression by expressing it in the
     form `a + bi` where both `a` and `b` are real.
     ...
 }}}

 In the docs, the `string_length` function appears quoted, which makes it
 look like we accept a string for the `complexity_measure`:

 {{{
 Type:           builtin_function_or_method
 Base Class:     <type 'builtin_function_or_method'>
 String Form:    <built-in method simplify_rectform of
 sage.symbolic.expression.Expression$
 Namespace:      Interactive
 Definition:     f.simplify_rectform(self, complexity_measure='
 string_length')
 Docstring:
 ...
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13149>
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.

Reply via email to