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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
18bba8ff
Commit
18bba8ff
authored
Aug 12, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly ppropagate directives for type conversion code.
This fixes #1790.
parent
e9194f7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-2
No files found.
Cython/Compiler/PyrexTypes.py
View file @
18bba8ff
...
@@ -3461,7 +3461,8 @@ class CppClassType(CType):
...
@@ -3461,7 +3461,8 @@ class CppClassType(CType):
})
})
from
.UtilityCode
import
CythonUtilityCode
from
.UtilityCode
import
CythonUtilityCode
env
.
use_utility_code
(
CythonUtilityCode
.
load
(
env
.
use_utility_code
(
CythonUtilityCode
.
load
(
cls
.
replace
(
'unordered_'
,
''
)
+
".from_py"
,
"CppConvert.pyx"
,
context
=
context
))
cls
.
replace
(
'unordered_'
,
''
)
+
".from_py"
,
"CppConvert.pyx"
,
context
=
context
,
compiler_directives
=
env
.
directives
))
self
.
from_py_function
=
cname
self
.
from_py_function
=
cname
return
True
return
True
...
@@ -3505,7 +3506,8 @@ class CppClassType(CType):
...
@@ -3505,7 +3506,8 @@ class CppClassType(CType):
})
})
from
.UtilityCode
import
CythonUtilityCode
from
.UtilityCode
import
CythonUtilityCode
env
.
use_utility_code
(
CythonUtilityCode
.
load
(
env
.
use_utility_code
(
CythonUtilityCode
.
load
(
cls
.
replace
(
'unordered_'
,
''
)
+
".to_py"
,
"CppConvert.pyx"
,
context
=
context
))
cls
.
replace
(
'unordered_'
,
''
)
+
".to_py"
,
"CppConvert.pyx"
,
context
=
context
,
compiler_directives
=
env
.
directives
))
self
.
to_py_function
=
cname
self
.
to_py_function
=
cname
return
True
return
True
...
...
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