[Python-Dev] __pycode__ extension

Stelios Xanthakis sxanth at ceid.upatras.gr
Tue Nov 16 20:26:19 CET 2004

On Tue, 16 Nov 2004, Phillip J. Eby wrote:

> I believe he means the Python source code; I personally would suggest a name 
> like '__source__' instead of '__pycode__' as the attribute name.

Yes. I'm terrible at choosing names for things :)

> Of course, I'd also almost prefer to have the AST than the original source...

If you have the python source you can get AST.
AST OTOH discards comments and other information.


More information about the Python-Dev mailing list