How does "__doc__ % globals()" work?

Jaime enopatch at gmail.com
Tue Apr 13 19:09:49 EDT 2021


Chris and Ethan,

Thank you both for your explanations - as soon as I read them, I understood
where I was going wrong. I also found the mapping key "%(PROGRAM)s" inside
the docstring on line 4 of
https://github.com/python/peps/blob/master/pep2html.py

Thanks again, Jaime.


More information about the Python-list mailing list