Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
d21c611e
Commit
d21c611e
authored
Dec 14, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use explicit boolean values instead of not so obvious integers.
parent
d3aeb431
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Cython/Compiler/TypeSlots.py
Cython/Compiler/TypeSlots.py
+6
-6
No files found.
Cython/Compiler/TypeSlots.py
View file @
d21c611e
...
@@ -86,14 +86,14 @@ class Signature(object):
...
@@ -86,14 +86,14 @@ class Signature(object):
'z'
:
"-1"
,
'z'
:
"-1"
,
}
}
def
__init__
(
self
,
arg_format
,
ret_format
,
nogil
=
0
):
def
__init__
(
self
,
arg_format
,
ret_format
,
nogil
=
False
):
self
.
has_dummy_arg
=
0
self
.
has_dummy_arg
=
False
self
.
has_generic_args
=
0
self
.
has_generic_args
=
False
if
arg_format
[:
1
]
==
'-'
:
if
arg_format
[:
1
]
==
'-'
:
self
.
has_dummy_arg
=
1
self
.
has_dummy_arg
=
True
arg_format
=
arg_format
[
1
:]
arg_format
=
arg_format
[
1
:]
if
arg_format
[
-
1
:]
==
'*'
:
if
arg_format
[
-
1
:]
==
'*'
:
self
.
has_generic_args
=
1
self
.
has_generic_args
=
True
arg_format
=
arg_format
[:
-
1
]
arg_format
=
arg_format
[:
-
1
]
self
.
fixed_arg_format
=
arg_format
self
.
fixed_arg_format
=
arg_format
self
.
ret_format
=
ret_format
self
.
ret_format
=
ret_format
...
@@ -522,7 +522,7 @@ class BaseClassSlot(SlotDescriptor):
...
@@ -522,7 +522,7 @@ class BaseClassSlot(SlotDescriptor):
# Slot descriptor for the base class slot.
# Slot descriptor for the base class slot.
def
__init__
(
self
,
name
):
def
__init__
(
self
,
name
):
SlotDescriptor
.
__init__
(
self
,
name
,
dynamic
=
1
)
SlotDescriptor
.
__init__
(
self
,
name
,
dynamic
=
True
)
def
generate_dynamic_init_code
(
self
,
scope
,
code
):
def
generate_dynamic_init_code
(
self
,
scope
,
code
):
base_type
=
scope
.
parent_type
.
base_type
base_type
=
scope
.
parent_type
.
base_type
...
...
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