docpicture

Scott David Daniels Scott.Daniels at Acm.Org
Tue Oct 14 15:12:59 CEST 2008


Steven D'Aprano wrote:
> And if not, it's no big deal. Your help string has a clearly labeled few 
> lines of hex:
> 
> Help on function spam:
> 
> spam(...)
>     spam spam spam spam spam spam 
>     spam spam spam spam with a fried egg on top
> 
>     === begin docpicture ===
>     1234567890ABCDEF...
>     === end docpicture ===
> Or similar. I'm sure people will cope, especially since it should be 
> relatively rare.
> 
or you could even use:
       '''<docpicture name="fig1.png" code="base64" version="1">
       1234567890ABCDEF...
       </docpicture>'''
A comment _not_ a docstring (only found by scanning the source).
which is easy enough to hunt for.

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list