That works - maybe a naive question, but can I treat code_lowered as simple string?
On Friday, 17 January 2014 21:41:13 UTC+1, Steven G. Johnson wrote: > > > > On Friday, January 17, 2014 3:31:42 PM UTC-5, Steven G. Johnson wrote: >> >> You can get more than the string, you can get the abstract syntax tree >> (AST) for a function. Given a function foo, you can get the AST from >> foo.env.defs.func.code >> > > Nevermind, this is the same thing as code_lowered, which also allows you > to get the AST for a specific argument-typed signature. > > Why not just work with code_lowered, and strip out any unwanted > annotations? >
