[Python-Dev] [Python-checkins] r80025 - peps/trunk/pep-3147.txt
Nick Coghlan
ncoghlan at gmail.com
Tue Apr 13 16:17:13 CEST 2010
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.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev
mailing list