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
24e62191
Kaydet (Commit)
24e62191
authored
May 21, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add documentation for Py_Main() and PyThreadState_GetDict().
üst
fc43d00c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
api.tex
Doc/api/api.tex
+21
-0
No files found.
Doc/api/api.tex
Dosyayı görüntüle @
24e62191
...
...
@@ -609,6 +609,19 @@ so care should be taken that \ctype{FILE*} parameters are only passed
to these functions if it is certain that they were created by the same
library that the Python runtime is using.
\begin{cfuncdesc}
{
int
}{
Py
_
Main
}{
int argc, char **argv
}
The main program for the standard interpreter. This is made
available for programs which embed Python. The
\var
{
argc
}
and
\var
{
argv
}
parameters should be prepared exactly as those which are
passed to a C program's
\cfunction
{
main()
}
function. It is
important to note that the argument list may be modified (but the
contents of the strings pointed to by the argument list are not).
The return value will be the integer passed to the
\function
{
sys.exit()
}
function,
\code
{
1
}
if the interpreter exits
due to an exception, or
\code
{
2
}
if the parameter list does not
represent a valid Python command line.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PyRun
_
AnyFile
}{
FILE *fp, char *filename
}
If
\var
{
fp
}
refers to a file associated with an interactive device
(console or terminal input or
\UNIX
{}
pseudo-terminal), return the
...
...
@@ -4631,6 +4644,14 @@ argument \var{tstate}, which may be \NULL{}. The interpreter lock
must be held.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyThreadState
_
GetDict
}{}
Return a dictionary in which extensions can store thread-specific
state information. Each extension should use a unique key to use to
store state in the dictionary. If this function returns
\NULL
, an
exception has been raised and the caller should allow it to
propogate.
\end{cfuncdesc}
\chapter
{
Memory Management
\label
{
memory
}}
\sectionauthor
{
Vladimir Marangozov
}{
Vladimir.Marangozov@inrialpes.fr
}
...
...
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