Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d5d04356
Kaydet (Commit)
d5d04356
authored
Eyl 14, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use \shortversion in a number of places.
This partially addresses SourceForge bug #114318.
üst
3cdb89d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
api.tex
Doc/api/api.tex
+5
-6
libsite.tex
Doc/lib/libsite.tex
+5
-5
libstdtypes.tex
Doc/lib/libstdtypes.tex
+2
-1
No files found.
Doc/api/api.tex
Dosyayı görüntüle @
d5d04356
...
...
@@ -102,7 +102,7 @@ the installation directory specified to the installer.
To include the headers, place both directories (if different) on your
compiler's search path for includes. Do
\emph
{
not
}
place the parent
directories on the search path and then use
\samp
{
\#
include <python
\
var
{
version
}
/Python.h>
}
; this will break on
\samp
{
\#
include <python
\
shortversion
/Python.h>
}
; this will break on
multi-platform builds since the platform independent headers under
\envvar
{
prefix
}
include the platform specific headers from
\envvar
{
exec
_
prefix
}
.
...
...
@@ -550,14 +550,13 @@ upon its best guess for the location of the standard Python
interpreter executable, assuming that the Python library is found in a
fixed location relative to the Python interpreter executable. In
particular, it looks for a directory named
\file
{
lib/python
\var
{
version
}}
(replacing
\var
{
version
}
with the current
interpreter version) relative to the parent directory where the
executable named
\file
{
python
}
is found on the shell command search
path (the environment variable
\envvar
{
PATH
}
).
\file
{
lib/python
\shortversion
}
relative to the parent directory where
the executable named
\file
{
python
}
is found on the shell command
search path (the environment variable
\envvar
{
PATH
}
).
For instance, if the Python executable is found in
\file
{
/usr/local/bin/python
}
, it will assume that the libraries are in
\file
{
/usr/local/lib/python
\
var
{
version
}
}
. (In fact, this particular path
\file
{
/usr/local/lib/python
\
shortversion
}
. (In fact, this particular path
is also the ``fallback'' location, used when no executable file named
\file
{
python
}
is found along
\envvar
{
PATH
}
.) The user can override
this behavior by setting the environment variable
\envvar
{
PYTHONHOME
}
,
...
...
Doc/lib/libsite.tex
Dosyayı görüntüle @
d5d04356
...
...
@@ -19,7 +19,7 @@ It starts by constructing up to four directories from a head and a
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Macintosh or Windows) or
it uses first
\file
{
lib/python
{
\var
{
version
}}
/site-packages
}
and then
it uses first
\file
{
lib/python
\shortversion
/site-packages
}
and then
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
head-tail combinations, it sees if it refers to an existing directory,
and if so, adds to
\code
{
sys.path
}
, and also inspected for path
...
...
@@ -39,10 +39,10 @@ refers to a directory (rather than a file). No item is added to
For example, suppose
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are
set to
\file
{
/usr/local
}
. The Python
\version\
library is then
installed in
\file
{
/usr/local/lib/python
\
var
{
version
}}
(wher
e
\var
{
version
}
is the first three characters of
\code
{
sys.version
}
).
Suppose this has a subdirectory
\file
{
/usr/local/lib/python
\
var
{
version
}
/site-packages
}
with three
installed in
\file
{
/usr/local/lib/python
\
shortversion
}
(where only th
e
first three characters of
\code
{
sys.version
}
are used to form the
installation path name).
Suppose this has a subdirectory
\file
{
/usr/local/lib/python
\
shortversion
/site-packages
}
with three
subsubdirectories,
\file
{
foo
}
,
\file
{
bar
}
and
\file
{
spam
}
, and two
path configuration files,
\file
{
foo.pth
}
and
\file
{
bar.pth
}
. Assume
\file
{
foo.pth
}
contains the following:
...
...
Doc/lib/libstdtypes.tex
Dosyayı görüntüle @
d5d04356
...
...
@@ -869,7 +869,8 @@ defines \code{\var{m}.a} to be \code{1}, but you can't write
Modules built into the interpreter are written like this:
\code
{
<module 'sys' (built-in)>
}
. If loaded from a file, they are
written as
\code
{
<module 'os' from '/usr/local/lib/python1.5/os.pyc'>
}
.
written as
\code
{
<module 'os' from
'/usr/local/lib/python
\shortversion
/os.pyc'>
}
.
\subsubsection
{
Classes and Class Instances
\label
{
typesobjects
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment