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
4d65d736
Kaydet (Commit)
4d65d736
authored
Nis 13, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document hexversion (incompletely explained) and version_info (easily
explained).
üst
801c08d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
libsys.tex
Doc/lib/libsys.tex
+32
-0
No files found.
Doc/lib/libsys.tex
Dosyayı görüntüle @
4d65d736
...
...
@@ -138,6 +138,28 @@ generally one higher than you might expect, because it includes the
(temporary) reference as an argument to
\function
{
getrefcount()
}
.
\end{funcdesc}
\begin{datadesc}
{
hexversion
}
The version number encoded as a single integer. This is guaranteed to
increase with each version, including proper support for
non-production releases. For example, to test that the Python
interpreter is at least version 1.5.2, use:
\begin{verbatim}
if sys.hexversion >= 0x010502F0:
# use some advanced feature
...
else:
# use an alternative implementation or warn the user
...
\end{verbatim}
This is called
\samp
{
hexversion
}
since it only really looks meaningful
when viewed as the result of passing it to the built-in
\function
{
hex()
}
function. The
\code
{
version
_
info
}
value may be used
for a more human-friendly encoding of the same information.
\versionadded
{
1.5.2
}
\end{datadesc}
\begin{datadesc}
{
last
_
type
}
\dataline
{
last
_
value
}
\dataline
{
last
_
traceback
}
...
...
@@ -304,6 +326,16 @@ directories (where appropriate on each platform). An example:
\end{verbatim}
\end{datadesc}
\begin{datadesc}
{
version
_
info
}
A tuple containing the four components of the version number:
\var
{
major
}
,
\var
{
minor
}
,
\var
{
micro
}
as integers, and
\var
{
releaselevel
}
as a string. The
\var
{
releaselevel
}
value will be
an empty string for a final release. The
\code
{
version
_
info
}
value
corresponding to the
\code
{
version
}
string shown above is
\code
{
(1, 5, 2, '')
}
.
\versionadded
{
1.6
}
\end{datadesc}
\begin{datadesc}
{
winver
}
The version number used to form registry keys on Windows platforms.
This is stored as string resource 1000 in the Python DLL. The value
...
...
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