[Python-checkins] python/nondist/peps pep-0302.txt,1.3,1.4

jvr@users.sourceforge.net jvr@users.sourceforge.net
2002年12月23日 14:46:23 -0800


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1:/tmp/cvs-serv23148
Modified Files:
	pep-0302.txt 
Log Message:
added note about the need of more introspective features: listing available modules and data files.
Index: pep-0302.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0302.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pep-0302.txt	23 Dec 2002 22:13:48 -0000	1.3
--- pep-0302.txt	23 Dec 2002 22:46:21 -0000	1.4
***************
*** 503,506 ****
--- 503,514 ----
 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

AltStyle によって変換されたページ (->オリジナル) /