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
4dc1a6d6
Kaydet (Commit)
4dc1a6d6
authored
Eki 02, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added some comments on the interaction of reload() and extension modules.
Based on comments from Chris Barker <cbarker@jps.net>.
üst
296b8f5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ext.tex
Doc/ext/ext.tex
+6
-1
No files found.
Doc/ext/ext.tex
Dosyayı görüntüle @
4dc1a6d6
...
...
@@ -435,7 +435,7 @@ int main(int argc, char **argv)
initspam();
\end{verbatim}
An
d
example may be found in the file
\file
{
Demo/embed/demo.c
}
in the
An example may be found in the file
\file
{
Demo/embed/demo.c
}
in the
Python source distribution.
\strong
{
Note:
}
Removing entries from
\code
{
sys.modules
}
or importing
...
...
@@ -444,6 +444,11 @@ following a \cfunction{fork()} without an intervening
\cfunction
{
exec()
}
) can create problems for some extension modules.
Extension module authors should exercise caution when initializing
internal data structures.
Note also that the
\function
{
reload()
}
function can be used with
extension modules, and will call the module initialization function
(
\cfunction
{
initspam()
}
in the example), but will not load the module
again if it was loaded from a dynamically loadable object file
(
\file
{
.so
}
on
\UNIX
,
\file
{
.dll
}
on Windows).
A more substantial example module is included in the Python source
distribution as
\file
{
Modules/xxmodule.c
}
. This file may be used as a
...
...
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