Ask Your Question

Revision history [back]

Some debug output after the lines pasted in the question:

sage: %debug                                     
> /home/burcin/sage/ask_qpoch.py(28)_eval_()
     27         if len(args) != self.m + 2:
---> 28             raise RuntimeError, args
     29 

ipdb> print self
qPochhammer(3)
ipdb> self.name()
'qPochhammer(3)'

Note that the function in use is not qPochhammer(3). ATM, we expect each BuiltinFunction to be instantiated once. In other words, each class corresponds to exactly one symbolic function. This is evident in the check on line 827 of sage/symbolic/function.pyx. Changing this to also check for the name of the function fixes your problem.

Patch waiting for review on trac ticket #13586.