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
b8bff3f4
Commit
b8bff3f4
authored
Apr 07, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return bools from functions named is_<whatever>().
parent
8fdc75ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Python/import.c
Python/import.c
+4
-4
No files found.
Python/import.c
View file @
b8bff3f4
...
...
@@ -214,9 +214,9 @@ imp_lock_held(PyObject *self, PyObject *args)
if
(
!
PyArg_ParseTuple
(
args
,
":lock_held"
))
return
NULL
;
#ifdef WITH_THREAD
return
Py
Int
_FromLong
(
import_lock_thread
!=
-
1
);
return
Py
Bool
_FromLong
(
import_lock_thread
!=
-
1
);
#else
return
Py
Int
_FromLong
(
0
);
return
Py
Bool
_FromLong
(
0
);
#endif
}
...
...
@@ -2295,7 +2295,7 @@ imp_is_builtin(PyObject *self, PyObject *args)
char
*
name
;
if
(
!
PyArg_ParseTuple
(
args
,
"s:is_builtin"
,
&
name
))
return
NULL
;
return
Py
Int
_FromLong
(
is_builtin
(
name
));
return
Py
Bool
_FromLong
(
is_builtin
(
name
));
}
static
PyObject
*
...
...
@@ -2306,7 +2306,7 @@ imp_is_frozen(PyObject *self, PyObject *args)
if
(
!
PyArg_ParseTuple
(
args
,
"s:is_frozen"
,
&
name
))
return
NULL
;
p
=
find_frozen
(
name
);
return
Py
Int
_FromLong
((
long
)
(
p
==
NULL
?
0
:
p
->
size
));
return
Py
Bool
_FromLong
((
long
)
(
p
==
NULL
?
0
:
p
->
size
));
}
static
FILE
*
...
...
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