Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28432

Re: python docs search for 'print'

From Terry Reedy <tjreedy@udel.edu>
Subject Re: python docs search for 'print'
Date 2012-09-04 18:58 -0400
References <50464153.5090402@gmail.com> <CAPM-O+yA4X2NPsT+LQfmyV5_ePZ80fxy4B5=192O6udV9+O8Wg@mail.gmail.com> <k25vhf$cef$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.198.1346799556.27098.python-list@python.org> (permalink)

Show all headers | View raw


On 9/4/2012 6:32 PM, Terry Reedy wrote:
>
>> On Tue, Sep 4, 2012 at 1:58 PM, David Hoese <dhoese@gmail.com> wrote:
>>> A friend made me aware of this:
>>> When a python beginner (2.x) quick searches for "print" on
>>> docs.python.org,
>>> the print function doesn't even come up in the top 20 results.
>
> In the Windows Help version of the docs, enter print in the index tab
> and print builtin function is at the top. Same is true of the online
> index. (There are only three 'print' entries. There is a duplicate for
> the builtin and one for the fixer. Moral: look for things that would be
> indexed in the index. Searching for a word in text, especially a common
> one like print, brings in lots of junk.

Search rather blindly searches pages for words. As an experiment, I 
entered 'print' on the search tab of the 3.3 Windows-version doc. It 
found 193 pages containing 'print'. The builtin functions page was 
ranked 75. It is a fairly long page with just 3 occurences of 'print'.

To repeat, use the index to find defining entries for Python objects.

If someone wants to volunteer to write a more intelligent search 
algorithm, that incorporates info from the index and markup, feel free.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python docs search for 'print' Terry Reedy <tjreedy@udel.edu> - 2012-09-04 18:58 -0400

csiph-web