Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5f6861df
Commit
5f6861df
authored
May 28, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct None refcount issue in Mac modules. (Are they
still used?)
parent
c26025c5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
Mac/Modules/dlg/_Dlgmodule.c
Mac/Modules/dlg/_Dlgmodule.c
+1
-1
Mac/Modules/dlg/dlgsupport.py
Mac/Modules/dlg/dlgsupport.py
+1
-1
Mac/Modules/file/_Filemodule.c
Mac/Modules/file/_Filemodule.c
+1
-1
Mac/Modules/file/filesupport.py
Mac/Modules/file/filesupport.py
+1
-1
Python/import.c
Python/import.c
+1
-1
No files found.
Mac/Modules/dlg/_Dlgmodule.c
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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