[Python-Dev] Python Language Reference has no mention of list comÃprehensions

M.-A. Lemburg mal at egenix.com
Thu Dec 3 15:00:13 EST 2015


On 03.12.2015 19:27, Laura Creighton wrote:
> So how do we get search to work so that people in the Language
> Reference who type in 'List Comprehension' get a hit?

It seems that the search index is broken for at least a few
documentation file releases:

ok: https://docs.python.org/2.6/search.html?q=comprehension&check_keywords=yes&area=default
not ok: https://docs.python.org/2.7/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/3.2/search.html?q=comprehension&check_keywords=yes&area=default
not ok: https://docs.python.org/3.3/search.html?q=comprehension&check_keywords=yes&area=default
not ok: https://docs.python.org/3.4/search.html?q=comprehension&check_keywords=yes&area=default
not ok: https://docs.python.org/3.5/search.html?q=comprehension&check_keywords=yes&area=default

(ok = "/reference/expressions.html is found")

Interestingly, these URLs give different results, e.g.

ok: https://docs.python.org/release/2.7.1/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/release/2.7.2/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/release/2.7.3/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/release/2.7.4/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/release/2.7.5/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/release/2.7.6/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/release/2.7.7/search.html?q=comprehension&check_keywords=yes&area=default
ok: https://docs.python.org/release/2.7.8/search.html?q=comprehension&check_keywords=yes&area=default
not ok:
https://docs.python.org/release/2.7.9/search.html?q=comprehension&check_keywords=yes&area=default
not ok:
https://docs.python.org/release/2.7.10/search.html?q=comprehension&check_keywords=yes&area=default

Looks like something changed between the 2.7.8 and 2.7.9 release.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Dec 03 2015)
>>> Python Projects, Coaching and Consulting ...  http://www.egenix.com/
>>> Python Database Interfaces ...           http://products.egenix.com/
>>> Plone/Zope Database Interfaces ...           http://zope.egenix.com/
________________________________________________________________________

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/
                      http://www.malemburg.com/



More information about the Python-Dev mailing list