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
b3dbb01f
Kaydet (Commit)
b3dbb01f
authored
Ock 07, 2005
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport latest version of whatsnew23: fix typos, remove a GC-related item; add an item
üst
fc49019a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
31 deletions
+12
-31
whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+12
-31
No files found.
Doc/whatsnew/whatsnew23.tex
Dosyayı görüntüle @
b3dbb01f
...
...
@@ -3,9 +3,12 @@
% $Id$
\title
{
What's New in Python 2.3
}
\release
{
1.0
0
}
\release
{
1.0
1
}
\author
{
A.M.
\
Kuchling
}
\authoraddress
{
\email
{
amk@amk.ca
}}
\authoraddress
{
\strong
{
Python Software Foundation
}
\\
Email:
\email
{
amk@amk.ca
}
}
\begin{document}
\maketitle
...
...
@@ -2136,33 +2139,6 @@ Changes to Python's build process and to the C API include:
\begin
{
itemize
}
\item
The C
-
level interface to the garbage collector has been changed
to make it easier to write extension types that support garbage
collection and to debug misuses of the functions.
Various functions have slightly different semantics, so a bunch of
functions had to be renamed. Extensions that use the old API will
still compile but will
\emph
{
not
}
participate in garbage collection,
so updating them for
2
.
3
should be considered fairly high priority.
To upgrade an extension module to the new API, perform the following
steps:
\begin
{
itemize
}
\item
Rename
\cfunction
{
Py
_
TPFLAGS
_
GC
}
to
\cfunction
{
PyTPFLAGS
_
HAVE
_
GC
}
.
\item
Use
\cfunction
{
PyObject
_
GC
_
New
}
or
\cfunction
{
PyObject
_
GC
_
NewVar
}
to
allocate objects, and
\cfunction
{
PyObject
_
GC
_
Del
}
to deallocate them.
\item
Rename
\cfunction
{
PyObject
_
GC
_
Init
}
to
\cfunction
{
PyObject
_
GC
_
Track
}
and
\cfunction
{
PyObject
_
GC
_
Fini
}
to
\cfunction
{
PyObject
_
GC
_
UnTrack
}
.
\item
Remove
\cfunction
{
PyGC
_
HEAD
_
SIZE
}
from object size calculations.
\item
Remove calls to
\cfunction
{
PyObject
_
AS
_
GC
}
and
\cfunction
{
PyObject
_
FROM
_
GC
}
.
\end
{
itemize
}
\item
The cycle detection implementation used by the garbage collection
has proven to be stable, so it's now been made mandatory. You can no
longer compile Python without it, and the
...
...
@@ -2196,6 +2172,11 @@ pre-2.2 versions of Python is important, the code could use
\code
{
PyArg
_
ParseTuple
(
\var
{
args
}
, ""
)
}
instead, but this will be slower
than using
\constant
{
METH
_
NOARGS
}
.
\item
\cfunction
{
PyArg
_
ParseTuple
()
}
accepts new format characters for various sizes of unsigned integers:
\samp
{
B
}
for
\ctype
{
unsigned char
}
,
\samp
{
H
}
for
\ctype
{
unsigned short int
}
,
\samp
{
I
}
for
\ctype
{
unsigned int
}
,
and
\samp
{
K
}
for
\ctype
{
unsigned long long
}
.
\item
A new function,
\cfunction
{
PyObject
_
DelItemString
(
\var
{
mapping
}
,
char
*
\var
{
key
}
)
}
was added as shorthand for
\code
{
PyObject
_
DelItem
(
\var
{
mapping
}
, PyString
_
New
(
\var
{
key
}
))
}
.
...
...
@@ -2242,7 +2223,7 @@ of the EMX port into CVS. (Contributed by Andrew MacIntyre.)
On MacOS, most toolbox modules have been weaklinked to improve
backward compatibility. This means that modules will no longer fail
to load if a single routine is missing on the curent OS version.
to load if a single routine is missing on the cur
r
ent OS version.
Instead calling the missing routine will raise an exception.
(
Contributed by Jack Jansen.
)
...
...
@@ -2388,7 +2369,7 @@ name.
The author would like to thank the following people for offering
suggestions, corrections and assistance with various drafts of this
article: Jeff Bauer, Simon Brunning, Brett Cannon, Michael Chermside,
Andrew Dalke, Scott David Daniels, Fred~L. Drake, Jr., David Fraser,
Andrew Dalke, Scott David Daniels, Fred~L. Drake, Jr., David Fraser,
Kelly Gerber,
Raymond Hettinger, Michael Hudson, Chris Lambert, Detlef Lannert,
Martin von~L
\"
owis, Andrew MacIntyre, Lalo Martins, Chad Netzer,
...
...
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