#12817: The 'nargs' argument to function() is undocumented
-----------------------------+----------------------------------------------
   Reporter:  mjo            |             Owner:  mvngu   
       Type:  defect         |            Status:  new     
   Priority:  major          |         Milestone:  sage-5.0
  Component:  documentation  |          Keywords:          
Work issues:                 |   Report Upstream:  N/A     
  Reviewers:                 |           Authors:          
  Merged in:                 |      Dependencies:          
   Stopgaps:                 |  
-----------------------------+----------------------------------------------
 This could potentially be useful, but the docs only mention the following
 inputs:

  * Variable name(s)
  * latex_name
  * print_latex_func

 {{{
 sage: x,y = var('x,y')
 sage: f = function('f', nargs=1)
 sage: f(x,y)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/mjo/src/sage-5.0.beta12/devel/sage-main/<ipython console> in
 <module>()

 /home/mjo/src/sage-5.0.beta12/local/lib/python2.7/site-
 packages/sage/symbolic/function.so in
 sage.symbolic.function.Function.__call__
 (sage/symbolic/function.cpp:3674)()

 TypeError: Symbolic function f takes exactly 1 arguments (2 given)
 }}}

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