How do I display a macro?

asked 2 years ago

cybervigilante gravatar image

I can recall the name of a macro but can't recall what it does. How do I display a particular macro's procedure?

Preview: (hide)

Comments

1

Strictly speaking, there are no macroes in Python. Just functions. (And in some's opinion,this is a bib lack...).

And those functions are compiled in pseudocode at definition. The source code is, as far as I know, lost forever.

The one thing preserved is the documentation string, stored in the __doc__ attribute of the function.

You should maintain source files...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2 years ago )
1

If you want to look at the source code of a function f, evaluate f??.

John Palmieri gravatar imageJohn Palmieri ( 2 years ago )
1

Also, please provide more details or give an example of what you would like to do.

John Palmieri gravatar imageJohn Palmieri ( 2 years ago )