From de66ddd00f2d35897c3971b19f3e23e77d8dd593 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Tue, 9 Apr 2024 13:00:36 +0100 Subject: [PATCH] __file__ == None cases --- import-and-importlib-notes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/import-and-importlib-notes.md b/import-and-importlib-notes.md index 4d4bde3..dcf3c26 100644 --- a/import-and-importlib-notes.md +++ b/import-and-importlib-notes.md @@ -39,6 +39,8 @@ importlib.machinery.ModuleSpec: # Python 3.4+ name # __name__ loader # __loader__ origin # __file__ + # None has been seen in the wild (#1042), + # it may indicate a namespace package. submodule_search_locations # __path__ # None indicates a non-package.