[Python-checkins] python/nondist/peps pep-0302.txt,1.10,1.11

jvr@users.sourceforge.net jvr@users.sourceforge.net
Mon, 30 Dec 2002 14:39:09 -0800


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1:/tmp/cvs-serv17165

Modified Files:
	pep-0302.txt 
Log Message:
removed get_package_path(), is_package() is back

Index: pep-0302.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0302.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** pep-0302.txt	30 Dec 2002 21:23:57 -0000	1.10
--- pep-0302.txt	30 Dec 2002 22:39:07 -0000	1.11
***************
*** 369,373 ****
      which should be implemented, or none at all.
  
!         loader.get_package_path(fullname)
          loader.get_code(fullname)
          loader.get_source(fullname)
--- 369,373 ----
      which should be implemented, or none at all.
  
!         loader.is_package(fullname)
          loader.get_code(fullname)
          loader.get_source(fullname)
***************
*** 376,385 ****
      found.
  
!     The loader.get_package_path(fullname) method should return None if
!     the module specified by 'fullname' is not a package, or a list to
!     serve as pkg.__path__ if it is.  It can be used to check
!     package-ness for a module ("loader.get_package_path(fullname) is not
!     None") but its main purpose is to tell our caller what pkg.__path__
!     would be if the module would actually be loaded.
  
      The loader.get_code(fullname) method should return the code object
--- 376,381 ----
      found.
  
!     The loader.is_package(fullname) method should return True if the
!     module specified by 'fullname' is a package and False if it isn't.
  
      The loader.get_code(fullname) method should return the code object
***************
*** 387,391 ****
      module.  If the loader doesn't have the code object but it _does_
      have the source code, it should return the compiled the source code.
!      (This is so that our caller doesn't also need to check get_source()
      if all it needs is the code object.)
  
--- 383,387 ----
      module.  If the loader doesn't have the code object but it _does_
      have the source code, it should return the compiled the source code.
!     (This is so that our caller doesn't also need to check get_source()
      if all it needs is the code object.)