On Monday, September 8, 2014 6:32:33 PM UTC+1, Nils Bruin wrote: > > There is an advantage to a decorator on python-level: If you're happy to > configure sage_citation_enabled at start-up (which means it would have to > be a command line option or an environment variable), you can make it > completely *zero* penalty at runtime, with a little penalty at function > definition ("import") time: >
But that doesn't work at the C level, you either compile something in or not. So you can't apply it to the (presumably) speed-critical c(p)def functions, only to plain Python functions where overhead wasn't much of an issue to start with. Also, in terms of user experience it is much preferable to have the citation tracking switchable at runtime. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.