A comp.lang.python code snippet archive?

Daniel Berlin dan at cgsoftware.com
Fri Mar 3 00:22:30 CET 2000

>>>>> "HN" == Hans Nowak <hnowak at cuci.nl> writes:

   >> chris patti <cpatti at atg.com> writes:
   >> It might also be nice as a gesture to the community if when people
   >> *post* such things they take a moment to also mail them to Michael -
   >> but anyway..
   >>  Aiee!  I don't have a site for these things (certainly not yet)!  Send
   >> the to Hans if anyone.  I was being speculative!  If Hans wants other
   >> people to help arranging and formatting snippets, I could help.
   >> Setting up my own site would require me learning A LOT of stuff first,
   >> and isn't going to happen that soon (hmm... exams).

   HN> If I had a not too unreliable method to scan messages for Python code,
   HN> that would solve most of the problems (except that I still would like
   HN> to get some snippets from elsewhere). The # method (see my other post)
   HN> does not seem unacceptable; I tried it and most messages with # in
   HN> them indeed have some code or something looking like it. :) Also some
   HN> pseudocode, etc, but I am not striving for a perfect way to do this. I
   HN> think it's better than scanning for reserved words.
The perfect way, is of course, to start a parse from the beginning of each
line, and when you have some text that parses, and the valid part of the parse ends at
the end of a line, you have a python snippet.

   HN> I will see if I can upload some new snippets, soonish.

More information about the Python-list mailing list