[Python-checkins] CVS: python/nondist/peps pep-0273.txt,1.3,1.4

Barry Warsaw bwarsaw@users.sourceforge.net
2001年10月31日 06:46:23 -0800


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv13356
Modified Files:
	pep-0273.txt 
Log Message:
Jim's latest update
Index: pep-0273.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0273.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pep-0273.txt	2001年10月29日 17:45:10	1.3
--- pep-0273.txt	2001年10月31日 14:46:21	1.4
***************
*** 135,148 ****
 Python versions on the same machine.
 
! This PEP suggests a zip archive name equal to the Python
! interpreter path with extension ".zip" (eg, /usr/bin/python.zip)
! which is always prepended to sys.path. So a directory with python
! and python.zip is complete. This would work fine on Windows, as
! it is common to put supporting files in the directory of the
! executable. But it may offend Unix fans, who dislike bin
! directories being used for libraries. It might be fine to
! generate different defaults for Windows and Unix if necessary, but
! the code will be in C, and there is no sense getting complicated.
! 
 
 Implementation
--- 135,147 ----
 Python versions on the same machine.
 
! I propose that there is one name added to sys.path, and the
! file name is "python%s%s.zip" % (sys.version[0], sys.version[2]).
! For example, python22.zip. This is the same on all platforms.
! On Unix, the directory is sys.prefix + "/lib". So for prefix
! /usr/local, the path /usr/local/lib/python2.2/ is already on
! sys.path, and /usr/local/lib/python22.zip would be added.
! On Windows, the directory is the directory of sys.executable.
! The zip archive name is always inserted as the second item
! in sys.path. The first always seems to be ''.
 
 Implementation

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