On Thu, Jan 31, 2013 at 10:40 AM, Julien Puydt <julien.pu...@laposte.net>wrote:
> I thought that wasn't really possible with python? Well, not directly, but one could define and add a decorator that just attaches a hidden attribute, like, ".__argument_specification" to the method or function. then, one could read that list and do something useful with it. We could even extend this to include invariants, like, "argument 1 is an Integer and must be >= 0 and <= 10". That's great for randomized testing btw ... H -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.