Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:not': 0.03; 'imported': 0.09; 'subject:module': 0.09; 'python': 0.11; '.py': 0.16; 'filename:fname piece:signature': 0.16; 'other)': 0.16; 'received:10.13': 0.16; 'received:78.47': 0.16; 'think.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'header:User-Agent:1': 0.23; 'task': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'feature': 0.29; 'request,': 0.31; 'search.': 0.31; 'trivial': 0.31; 'implemented': 0.33; 'could': 0.34; 'but': 0.35; 'disk': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'entire': 0.61; 'costly': 0.84; 'don\xe2\x80\x99t': 0.91; 'subject:Auto': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wielicki.name; s=k001.sol; t=1426524872; bh=jiqESJQ0A3B7S0ek+WH1zH78RKg5U+gYO3TveDaNtQ0=; h=Date:From:To:Subject:References:In-Reply-To; b=L/+e73tIH33XkfgSJNIopoRp3qKTRkJ60pSXsMt0a81mIttRAKfsV1pUbmqCohKtr 4s+xKhi6fq0QW3EQijKGTHBY7DDU561oYuonRFwI16fExRuRqyAPbFyUYJSaRareDp 2vcpWIt29XcS3iC0aLyNY4SagSJnO5D0SZ8FB+8QYuKTPbtVMn215IEbILGDgSs39w G6VqH3CQvecFeNljpF2zRohk540bwuvz51aTMK7iobog8ArHThB2twDtEDHtDWSHVt zTjPNaQCiZOTYrDwgy8uIYzbxSJhiC5RAD6jdkMD2NDiPCB4Czb7H+4sAMLQNK3b1t uUDqZe19IeyHg== Date: Mon, 16 Mar 2015 17:54:29 +0100 From: Jonas Wielicki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Auto-completion: why not module name? References: <18705a55-6b0a-4b55-99ab-479c19566e1a@googlegroups.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Wrtegawdj8IVf3QTbWVFWtHhAWgju1hFf" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1426524875 news.xs4all.nl 2923 [2001:888:2000:d::a6]:42443 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87575 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Wrtegawdj8IVf3QTbWVFWtHhAWgju1hFf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 16.03.2015 17:40, Chris Angelico wrote: > This is a very plausible feature request, but be aware that it will > involve a very costly disk search. Figuring out what modules could be > imported means going through the entire Python module search path, > enumerating .py (and other) files, and that could be a lot slower than > you think. With possible side-effects, like help("modules") has. I don=E2=80=99t thi= nk that this is a trivial task (and if it is, why is help("modules") not implemented in that trivial way?) regards, jwi --Wrtegawdj8IVf3QTbWVFWtHhAWgju1hFf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVBwrFAAoJEMBiAyWXYliKCjUQAICcyYH862a/xsnEPwbnqmxH AFGxf3gB2l6CiHq1axtakRgXaOmETEvISIPDjphs5tR62iAEhAvrOl34sdfPMUQW zX4C4+aIF9yr4AOhgY8+G4sV7iuuB4dbm8+yO63rQSgM8t3xx7l6ugeFhNH+h83E EKzhZreL4gmnqPR0Lr1ewp3fKejZGczJiUKKYGIKhOTBRdkXxWHZBvDYLbXsyYpE 8nUsQhbpUlZ3DogGbWjguyAiGv8eilQHwJPQCpQqE9xFJ9qSScNLnprzhbXsEKQP /aVkcuw5haNBCv14kvc27nVNwMQF/B79xuF6uCwgQMQdq4j0KVdr2Ez3jjKoxgZD Vl4iMd8px0PUe2dyKQ9g532UGQBX6pDSTtA7Id1+04X7ySXULgQVsxe5V+7VYTG9 Y6a+0V7aUkbwOTviyT9eeqLkTb+jRnv8VXVNp5p1TKMotHc5lremvuCQnykQL+iZ o0mnhyJMiP7Jfh/rYqvP50InbICUJV3sopzwhbh1GC6OdGJDpXqP921B3/1idO0/ DjHXji91EFiCNq6dDIBCAH1hVhpUXXYT2IzIBJfxD1R+7l+zxzkX+J+wAmtzbp7G ndi+MWioqCW29EiUKXzSW7VZfBSFHlg3lc4MIMdTAH3wQsyWqm+kE9udPl4geJ9F harttw01HU5CG5QLdId2 =ef51 -----END PGP SIGNATURE----- --Wrtegawdj8IVf3QTbWVFWtHhAWgju1hFf--