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
295fdc83
Commit
295fdc83
authored
8 years ago
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test fixes.
parent
4d7fbe25
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+1
-1
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+1
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+1
-1
tests/run/line_profile_test.srctree
tests/run/line_profile_test.srctree
+3
-3
No files found.
Cython/Compiler/Builtin.py
View file @
295fdc83
...
@@ -210,7 +210,7 @@ builtin_function_table = [
...
@@ -210,7 +210,7 @@ builtin_function_table = [
BuiltinFunction
(
'__Pyx_PyObject_Append'
,
"OO"
,
"O"
,
"__Pyx_PyObject_Append"
),
BuiltinFunction
(
'__Pyx_PyObject_Append'
,
"OO"
,
"O"
,
"__Pyx_PyObject_Append"
),
# This is conditionally looked up based on a compiler directive.
# This is conditionally looked up based on a compiler directive.
BuiltinFunction
(
'__Pyx_
g
lobals'
,
""
,
"O"
,
"__Pyx_Globals"
,
BuiltinFunction
(
'__Pyx_
G
lobals'
,
""
,
"O"
,
"__Pyx_Globals"
,
utility_code
=
globals_utility_code
),
utility_code
=
globals_utility_code
),
]
]
...
...
This diff is collapsed.
Click to expand it.
Cython/Compiler/Options.py
View file @
295fdc83
...
@@ -415,7 +415,7 @@ def parse_directive_list(s, relaxed_bool=False, ignore_unknown=False,
...
@@ -415,7 +415,7 @@ def parse_directive_list(s, relaxed_bool=False, ignore_unknown=False,
found
=
False
found
=
False
if
name
.
endswith
(
'.all'
):
if
name
.
endswith
(
'.all'
):
prefix
=
name
[:
-
3
]
prefix
=
name
[:
-
3
]
for
directive
in
directive_defaults
:
for
directive
in
_
directive_defaults
:
if
directive
.
startswith
(
prefix
):
if
directive
.
startswith
(
prefix
):
found
=
True
found
=
True
parsed_value
=
parse_directive_value
(
directive
,
value
,
relaxed_bool
=
relaxed_bool
)
parsed_value
=
parse_directive_value
(
directive
,
value
,
relaxed_bool
=
relaxed_bool
)
...
...
This diff is collapsed.
Click to expand it.
Cython/Compiler/Symtab.py
View file @
295fdc83
...
@@ -1130,7 +1130,7 @@ class ModuleScope(Scope):
...
@@ -1130,7 +1130,7 @@ class ModuleScope(Scope):
if
entry
.
name
==
name
:
if
entry
.
name
==
name
:
return
entry
return
entry
if
name
==
'globals'
and
not
self
.
old_style_globals
:
if
name
==
'globals'
and
not
self
.
old_style_globals
:
return
self
.
outer_scope
.
lookup
(
'__Pyx_
g
lobals'
)
return
self
.
outer_scope
.
lookup
(
'__Pyx_
G
lobals'
)
else
:
else
:
entry
=
self
.
declare
(
None
,
None
,
py_object_type
,
pos
,
'private'
)
entry
=
self
.
declare
(
None
,
None
,
py_object_type
,
pos
,
'private'
)
if
Options
.
cache_builtins
and
name
not
in
Code
.
uncachable_builtins
:
if
Options
.
cache_builtins
and
name
not
in
Code
.
uncachable_builtins
:
...
...
This diff is collapsed.
Click to expand it.
tests/run/line_profile_test.srctree
View file @
295fdc83
...
@@ -7,9 +7,9 @@ from distutils.extension import Extension
...
@@ -7,9 +7,9 @@ from distutils.extension import Extension
from distutils.core import setup
from distutils.core import setup
from Cython.Build import cythonize
from Cython.Build import cythonize
from Cython.Compiler.Options import directive_defaults
from Cython.Compiler.Options import
_
directive_defaults
directive_defaults['linetrace'] = True
_
directive_defaults['linetrace'] = True
directive_defaults['binding'] = True
_
directive_defaults['binding'] = True
extensions = [
extensions = [
Extension("collatz", ["collatz.pyx"], define_macros=[('CYTHON_TRACE', '1')])
Extension("collatz", ["collatz.pyx"], define_macros=[('CYTHON_TRACE', '1')])
...
...
This diff is collapsed.
Click to expand it.
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