#18623: Allow calling variadic PARI closures
-------------------------------------+-------------------------------------
       Reporter:  pbruin             |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-6.8
      Component:  interfaces         |   Resolution:
       Keywords:  pari closure       |    Merged in:
        Authors:  Peter Bruin        |    Reviewers:  Jeroen Demeyer
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/pbruin/18623-variadic_pari_closure|  
08ac2b8e0a91e85b922b2dadb4a0bbe8d58d8185
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):

 * status:  positive_review => needs_work


Comment:

 {{{
 sage -t --long src/sage/libs/pari/closure.pyx
 **********************************************************************
 File "src/sage/libs/pari/closure.pyx", line 158, in
 sage.libs.pari.closure.objtoclosure
 Failed example:
     mul(*range(100))
 Expected:
     Traceback (most recent call last):
     ...
     TypeError: PARI closure takes at most 5 arguments (100 given)
 Got:
     <BLANKLINE>
     Traceback (most recent call last):
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 496, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 858, in compile_and_execute
         exec(compiled, globs)
       File "<doctest sage.libs.pari.closure.objtoclosure[9]>", line 1, in
 <module>
         mul(*range(Integer(100)))
       File "sage/libs/pari/gen.pyx", line 7956, in
 sage.libs.pari.gen.gen.__call__
 (build/cythonized/sage/libs/pari/gen.c:130162)
         return self.eval(*args, **kwds)
       File "sage/libs/pari/gen.pyx", line 7864, in
 sage.libs.pari.gen.gen.eval (build/cythonized/sage/libs/pari/gen.c:129597)
         pari_catch_sig_on()
       File "sage/libs/pari/handle_error.pyx", line 177, in
 sage.libs.pari.handle_error._pari_err_handle
 (build/cythonized/sage/libs/pari/handle_error.c:2823)
         raise PariError(errnum, pari_error_string,
 pari_instance.new_gen_noclear(E))
     PariError: call_python: too many parameters in user-defined function
 call
 **********************************************************************
 1 item had failures:
    1 of  12 in sage.libs.pari.closure.objtoclosure
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18623#comment:4>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to