[Python-Dev] How to interpret get_code from PEP 302?

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 22 02:15:37 CEST 2007


Paul Moore wrote:
> What the sentence you quote
> is trying to say is that if there's a need to compile source, the
> get_code method must do this on behalf of the caller - it can't return
> None and expect the caller to try get_source and compile it manually.

Why not simply say that it must return a code object?
All the rest follows from that.

--
Greg


More information about the Python-Dev mailing list