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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/IFIM5SAQEEOXXY2RDM3DM4DSC7U4QQ4X/
Code of Conduct: http://python.org/psf/codeofconduct/