
Jan. 14, 2020
9:44 a.m.
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!
1891
Age (days ago)
1891
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ned Batchelder
-
Soni L.