How do I display a macro?

asked 2022-05-16 03:05:05 +0100

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?

edit retag flag offensive close merge delete

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 ( 2022-05-16 08:27:01 +0100 )edit
1

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

John Palmieri gravatar imageJohn Palmieri ( 2022-05-16 15:58:29 +0100 )edit
1

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

John Palmieri gravatar imageJohn Palmieri ( 2022-05-16 19:45:41 +0100 )edit