This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients barry, brett.cannon, corona10, eric.snow, lemburg, rhettinger
Date 2021-09-22.15:43:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CALFfu7BJGxMJbjHd0d8mdNqES+zBgA9AEEsoemX_=CELjD5qtw@mail.gmail.com>
In-reply-to <1632316923.96.0.611376150182.issue45213@roundup.psfhosted.org>
Content
On Wed, Sep 22, 2021 at 7:12 AM Dong-hee Na <report@bugs.python.org> wrote:
> I thought about the Trie implementation for this case.

On Wed, Sep 22, 2021 at 7:22 AM Marc-Andre Lemburg
<report@bugs.python.org> wrote:
> Perhaps a frozen dict could be used instead of the linear search.
>
> This could then also be made available as sys.frozen_modules for inspection by applications and tools such as debuggers or introspection tools trying to find source code (and potentially failing at this).

Both are worth exploring later.  FWIW, I was also considering
_Py_hashtable_t (from Include/internal/pycore_hashtable.h).
History
Date User Action Args
2021-09-22 15:43:36eric.snowsetrecipients: + eric.snow, lemburg, barry, brett.cannon, rhettinger, corona10
2021-09-22 15:43:36eric.snowlinkissue45213 messages
2021-09-22 15:43:36eric.snowcreate