diff --git a/pep-0302.txt b/pep-0302.txt index 3f37a0c47..d6b466e51 100644 --- a/pep-0302.txt +++ b/pep-0302.txt @@ -502,6 +502,14 @@ Open Issues us nothing extra. Whether loaders will ever need to carry so much independent state for this to become a real issue is questionable. + It was suggested on python-dev that it would be useful to be able to + receive a list of available modules from an importer and/or a list + of available data files for use with the get_data() method. The + protocol could grow two additional extensions, say list_modules() + and list_files(). The latter makes sense on loader objects with a + get_data() method. However, it's a bit unclear which object should + implement list_modules(): the importer or the loader or both? + Implementation