[Python-Dev] [Python-checkins] r80025 - peps/trunk/pep-3147.txt (original) (raw)

Barry Warsaw barry at python.org
Tue Apr 13 16:38:35 CEST 2010


On Apr 14, 2010, at 12:17 AM, Nick Coghlan wrote:

Barry Warsaw wrote:

On Apr 13, 2010, at 11:13 PM, Nick Coghlan wrote:

barry.warsaw wrote: +It is recommended that when nothing sensible can be calculated, +implementations should set the _cached_ attribute to None. What (if anything) should we set cached to in main? Good catch. Right now (in my current branch) it is undefined. It should be None. Sounds reasonable. I ask because the various functions in runpy will also need to cover setting that value properly.

Right. I'm looking at runpy now, but am less familiar with this code. Right now I have anything executed with -m as setting cached to None, which seems right in the simple case because the -m doesn't appear to get byte compiled. Is that correct?

-Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20100413/d21d308b/attachment.pgp>



More information about the Python-Dev mailing list