[Tutor] How do you organize code snippets?
Poor Yorick
tutor.python.org at pooryorick.com
Sun Sep 18 19:28:10 CEST 2005
List wrote:
> Is there a way of naming or organizing snippets that might help? (For
> example, file i/o snippets, text processing snippets, etc.)
>
If you really want to have fun, you can use LEO, http://webpages.charter.net/edreamleo/front.html to store your code snippets and generate files from them. The fun part is that you can clone each node which may contain some code and move the clone to a different point in the hierarchy. When you change your code in any of the clones, it gets changed in all of the clones. At the most basic level, you can use LEO as on outliner, like Treepad. If you decide to get more complicated, you can use LEO as a templating tool to generate your resulting .py files from your snippets.
--
Poor Yorick
More information about the Tutor
mailing list