OK, that fixes the XFAIL function name problem, but I still can't get the original function parameters to show up in help(). Any ideas?
Aaron Meurer On Feb 25, 2010, at 10:41 PM, Priit Laes wrote: > Ühel kenal päeval, N, 2010-02-25 kell 07:46, kirjutas Aaron S. Meurer: >> Does anyone know if fixing these things would be possible? I am not to >> familiar with decorators. >> >> Two aspects of decorated functions annoy me. First off, the function >> name is changed to the name of the decorated function. The result is >> that tests that have @XFAIL show up as func_wrapper in bin/test -v. >> For example: >> > > Nice catch, > > Please check out > functools.update_wrapper(...) and functools.wraps(...) > > http://docs.python.org/library/functools.html > > -- > Priit Laes > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sy...@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.