We have importlib resources. We should put it to use.
Imagine if you could separate your docs from your code and yet include them in your package.
``` f"""{from mymodule.docs include main.rst}""" def foo(): f"""{from mymodule.docs include foo.rst}""" pass class Bar: f"""{from mymodule.docs include bar.rst}""" pass template = f"{from mymodule.templates include index.html}" ``` etc. I think this would be pretty cool! _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/IFIM5SAQEEOXXY2RDM3DM4DSC7U4QQ4X/ Code of Conduct: http://python.org/psf/codeofconduct/