How do I display a macro?
I can recall the name of a macro but can't recall what it does. How do I display a particular macro's procedure?
I can recall the name of a macro but can't recall what it does. How do I display a particular macro's procedure?
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2022-05-16 03:05:05 +0100
Seen: 499 times
Last updated: May 16 '22
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...
If you want to look at the source code of a function
f
, evaluatef??
.Also, please provide more details or give an example of what you would like to do.