On Mon, September 10, 2007 1:44 pm, Joel B. Mohler wrote: > The principle refinement needed is: How can call_fast_integer_function > bewritten generically?
This does not address how one does this, and I'm not even sure this is what you mean by generic, but: Python includes a method decorator syntax: @decorate method The "try fast integer path" could be a decoration that makes it relatively painless to give a fast version and a generic version. That could make reuse easier. Nick --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---