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


Groups > comp.lang.python > #28432 > unrolled thread

Re: python docs search for 'print'

Started byTerry Reedy <tjreedy@udel.edu>
First post2012-09-04 18:58 -0400
Last post2012-09-04 18:58 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#28432 — Re: python docs search for 'print'

FromTerry Reedy <tjreedy@udel.edu>
Date2012-09-04 18:58 -0400
SubjectRe: python docs search for 'print'
Message-ID<mailman.198.1346799556.27098.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web