Python pattern repository
Fernando Pérez
fperez528 at yahoo.com
Wed Oct 16 01:46:51 EDT 2002
Chris Liechti wrote:
>> Here's the concept: If you want to include your code snippet
>> in the PyPAN, post it embedded in a document that Google will see.
>
> while i think your idea is nice, this can be the first problem...
> google is only includeing pages that are linked somewhere. it took many
> months until it indexed my page with a gcc port...
Usenet is indexed very quickly. You could simply post to c.l.py and bang, it's
stored by google.
>
>> You embed it for easy extraction by putting a PyPAN expression
>> in the first and last (+/- 1, discussed later[1]) lines of your
>> snippet, e.g.,
>>
>> # ++PyPAN++ mySnippet.py /clp/forcomment/ -- minimal PyPan snippet
>> def mySnippet():
>> print 'Hello PyPAN!'
>> # --PyPAN--
>>
>> I think Google would find '++PyPan++' and show an interesting list.
>
> why do you use "+-" etc in the marker? those are special characters to
> google and it ignores punctuation/special chars in other cases.
> i'd stay with letters only.
If I recall correctly, it's no problem if you search with quotes around your
string. But maybe a different marker set can make life easier.
Cheers,
f.
More information about the Python-list
mailing list