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
5f6861df
Kaydet (Commit)
5f6861df
authored
May 28, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct None refcount issue in Mac modules. (Are they
still used?)
üst
c26025c5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
_Dlgmodule.c
Mac/Modules/dlg/_Dlgmodule.c
+1
-1
dlgsupport.py
Mac/Modules/dlg/dlgsupport.py
+1
-1
_Filemodule.c
Mac/Modules/file/_Filemodule.c
+1
-1
filesupport.py
Mac/Modules/file/filesupport.py
+1
-1
import.c
Python/import.c
+1
-1
No files found.
Mac/Modules/dlg/_Dlgmodule.c
Dosyayı görüntüle @
5f6861df
...
...
@@ -139,7 +139,7 @@ typedef struct DialogObject {
PyObject
*
DlgObj_New
(
DialogPtr
itself
)
{
DialogObject
*
it
;
if
(
itself
==
NULL
)
return
Py_None
;
if
(
itself
==
NULL
)
{
Py_INCREF
(
Py_None
);
return
Py_None
;
}
it
=
PyObject_NEW
(
DialogObject
,
&
Dialog_Type
);
if
(
it
==
NULL
)
return
NULL
;
it
->
ob_itself
=
itself
;
...
...
Mac/Modules/dlg/dlgsupport.py
Dosyayı görüntüle @
5f6861df
...
...
@@ -202,7 +202,7 @@ class MyObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
Output
(
"SetWRefCon(GetDialogWindow(itself), (long)it);"
)
def
outputCheckNewArg
(
self
):
Output
(
"if (itself == NULL)
return Py_None;
"
)
Output
(
"if (itself == NULL)
{ Py_INCREF(Py_None); return Py_None; }
"
)
def
outputCheckConvertArg
(
self
):
Output
(
"if (v == Py_None) { *p_itself = NULL; return 1; }"
)
...
...
Mac/Modules/file/_Filemodule.c
Dosyayı görüntüle @
5f6861df
...
...
@@ -153,7 +153,7 @@ typedef struct FSCatalogInfoObject {
static
PyObject
*
FSCatalogInfo_New
(
FSCatalogInfo
*
itself
)
{
FSCatalogInfoObject
*
it
;
if
(
itself
==
NULL
)
return
Py_None
;
if
(
itself
==
NULL
)
{
Py_INCREF
(
Py_None
);
return
Py_None
;
}
it
=
PyObject_NEW
(
FSCatalogInfoObject
,
&
FSCatalogInfo_Type
);
if
(
it
==
NULL
)
return
NULL
;
it
->
ob_itself
=
*
itself
;
...
...
Mac/Modules/file/filesupport.py
Dosyayı görüntüle @
5f6861df
...
...
@@ -475,7 +475,7 @@ class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition):
self
.
argref
=
"*"
# Store FSSpecs, but pass them by address
def
outputCheckNewArg
(
self
):
Output
(
"if (itself == NULL)
return Py_None;
"
)
Output
(
"if (itself == NULL)
{ Py_INCREF(Py_None); return Py_None; }
"
)
def
output_tp_newBody
(
self
):
Output
(
"PyObject *self;"
);
...
...
Python/import.c
Dosyayı görüntüle @
5f6861df
...
...
@@ -2059,7 +2059,7 @@ PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals,
/* Return the package that an import is being performed in. If globals comes
from the module foo.bar.bat (not itself a package), this returns the
sys.modules entry for foo.bar. If globals is from a package's __init__.py,
the package's entry in sys.modules is returned.
the package's entry in sys.modules is returned
, as a borrowed reference
.
The *name* of the returned package is returned in buf, with the length of
the name in *p_buflen.
...
...
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