[Python-checkins] r56920 - sandbox/trunk/import_in_py/NOTES

brett.cannon python-checkins at python.org
Sat Aug 11 10:02:32 CEST 2007


Author: brett.cannon
Date: Sat Aug 11 10:02:32 2007
New Revision: 56920

Modified:
   sandbox/trunk/import_in_py/NOTES
Log:
Update NOTES with better type info for functions and a todo item to write tests
for ChainedImporter.


Modified: sandbox/trunk/import_in_py/NOTES
==============================================================================
--- sandbox/trunk/import_in_py/NOTES	(original)
+++ sandbox/trunk/import_in_py/NOTES	Sat Aug 11 10:02:32 2007
@@ -6,17 +6,17 @@
     Return the text for a source module.
     XXX Can this be replaced by get_source?  Only if expected to be defined on
     a loader.
-* bytecode(module_name) -> bytes|str
+* bytecode(module_name) -> bytes
     Return the bytes for a bytecode module.
     XXX Rename to get_bytecode if get_source is viable for source().
-* write_bytecode(module_name, data:bytes|str) -> bool
+* write_bytecode(module_name, data:bytes) -> bool
     Write out the new representation of a bytecode module.  Returns a boolean
     representing whether the bytes were actually written out or not.
 
 
 Handler API:
 * cannot_handle(name:str) -> bool
-    Can the handler handle with the specified module?
+    Can the handler handle the specified module?
     XXX Perhaps this should just be something that is not part of the official
     API and is just handled by importers and loaders that need to do
     whitelisting?
@@ -36,3 +36,6 @@
 * is_package(fullname:str) -> bool
 * get_code(fullname:str) -> code
 * get_source(fullname:str) -> str
+
+
+XXX Write tests for ChainedImporter.


More information about the Python-checkins mailing list