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
61434b6d
Kaydet (Commit)
61434b6d
authored
Nis 13, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Describe sys.subversion, Py_GetBuildInfo()
Add metadata example
üst
aa571c9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
whatsnew25.tex
Doc/whatsnew/whatsnew25.tex
+34
-4
No files found.
Doc/whatsnew/whatsnew25.tex
Dosyayı görüntüle @
61434b6d
...
...
@@ -227,7 +227,16 @@ set to a URL for the package's source code. This means it's now
possible to look up an entry in the package index, determine the
dependencies for a package, and download the required packages.
% XXX put example here
\begin{verbatim}
VERSION = '1.0'
setup(name='PyPackage',
version=VERSION,
requires=['numarray', 'zlib (>=1.1.4)'],
obsoletes=['OldPackage']
download
_
url=('http://www.example.com/pypackage/dist/pkg-
%s.tar.gz'
% VERSION),
)
\end{verbatim}
\begin{seealso}
...
...
@@ -1070,7 +1079,18 @@ family, type, and protocol values for the socket.
shadow password database on systems that support it.
% XXX give example
% XXX patch #1382163: sys.subversion, Py_GetBuildNumber()
\item
The Python developers switched from CVS to Subversion during the 2.5
development process. Information about the exact build version is
available as the
\code
{
sys.subversion
}
variable, a 3-tuple
of
\code
{
(
\var
{
interpreter-name
}
,
\var
{
branch-name
}
,
\var
{
revision-range
}
)
}
.
For example, at the time of writing
my copy of 2.5 was reporting
\code
{
('CPython', 'trunk', '45313:45315')
}
.
This information is also available to C extensions via the
\cfunction
{
Py
_
GetBuildInfo()
}
function that returns a
string of build information like this:
\code
{
"trunk:45355:45356M, Apr 13 2006, 07:42:19"
}
.
(Contributed by Barry Warsaw.)
\item
The
\class
{
TarFile
}
class in the
\module
{
tarfile
}
module now has
an
\method
{
extractall()
}
method that extracts all members from the
...
...
@@ -1106,6 +1126,7 @@ by some specifications, so it's still available as
%======================================================================
% whole new modules get described in subsections here
%======================================================================
\subsection
{
The ctypes package
}
The
\module
{
ctypes
}
package, written by Thomas Heller, has been added
...
...
@@ -1179,8 +1200,6 @@ Perhaps developers will begin to write
Python wrappers atop a library accessed through
\module
{
ctypes
}
instead
of extension modules, now that
\module
{
ctypes
}
is included with core Python.
% XXX write introduction
\begin{seealso}
\seeurl
{
http://starship.python.net/crew/theller/ctypes/
}
...
...
@@ -1188,6 +1207,8 @@ of extension modules, now that \module{ctypes} is included with core Python.
\end{seealso}
%======================================================================
\subsection
{
The ElementTree package
}
A subset of Fredrik Lundh's ElementTree library for processing XML has
...
...
@@ -1298,6 +1319,7 @@ Please read the package's official documentation for more details.
\end{seealso}
%======================================================================
\subsection
{
The hashlib package
}
A new
\module
{
hashlib
}
module has been added to replace the
...
...
@@ -1346,6 +1368,7 @@ and \method{copy()} returns a new hashing object with the same digest state.
This module was contributed by Gregory P. Smith.
%======================================================================
\subsection
{
The sqlite3 package
}
The pysqlite module (
\url
{
http://www.pysqlite.org
}
), a wrapper for the
...
...
@@ -1525,6 +1548,13 @@ new set, \cfunction{PySet_Add()} and \cfunction{PySet_Discard()} to
add and remove elements, and
\cfunction
{
PySet
_
Contains
}
and
\cfunction
{
PySet
_
Size
}
to examine the set's state.
\item
C code can now obtain information about the exact revision
of the Python interpreter by calling the
\cfunction
{
Py
_
GetBuildInfo()
}
function that returns a
string of build information like this:
\code
{
"trunk:45355:45356M, Apr 13 2006, 07:42:19"
}
.
(Contributed by Barry Warsaw.)
\item
The
\cfunction
{
PyRange
_
New()
}
function was removed. It was
never documented, never used in the core code, and had dangerously lax
error checking.
...
...
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