Docstrings and PEP 3174

Terry Reedy tjreedy at udel.edu
Sun Aug 1 19:26:17 EDT 2010


On 8/1/2010 4:30 AM, Gregory Ewing wrote:
> Steven D'Aprano wrote:
>
>> If you mean a runtime optimization with no change to the source file,
>> then maybe, tell me more.
>
> Note that you don't necessarily need a separate file for this.
> It could just be a separate part of the same file.

Which is to say, all the docstrings in a modules *could* be placed at 
the end and not normally read in by the interpreter until needed. I have 
no idea what it does now, but I suspect not that. It might make module 
loading a bit faster.


-- 
Terry Jan Reedy




More information about the Python-list mailing list