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
11e3944a
Commit
11e3944a
authored
Feb 24, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarify error message
parent
0912e6e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
tests/errors/e_exttype_freelist.pyx
tests/errors/e_exttype_freelist.pyx
+1
-1
No files found.
Cython/Compiler/Nodes.py
View file @
11e3944a
...
@@ -4190,7 +4190,7 @@ class CClassDefNode(ClassDefNode):
...
@@ -4190,7 +4190,7 @@ class CClassDefNode(ClassDefNode):
else
:
else
:
self
.
base_type
=
base_class_entry
.
type
self
.
base_type
=
base_class_entry
.
type
if
env
.
directives
.
get
(
'freelist'
,
0
)
>
0
:
if
env
.
directives
.
get
(
'freelist'
,
0
)
>
0
:
warning
(
self
.
pos
,
"freelists
are not currently supported for subtypes
"
,
1
)
warning
(
self
.
pos
,
"freelists
cannot be used on subtypes, only the base class can manage them
"
,
1
)
has_body
=
self
.
body
is
not
None
has_body
=
self
.
body
is
not
None
if
self
.
module_name
and
self
.
visibility
!=
'extern'
:
if
self
.
module_name
and
self
.
visibility
!=
'extern'
:
...
...
tests/errors/e_exttype_freelist.pyx
View file @
11e3944a
...
@@ -20,5 +20,5 @@ cdef class ExtSubTypeFail(ExtType):
...
@@ -20,5 +20,5 @@ cdef class ExtSubTypeFail(ExtType):
_ERRORS
=
"""
_ERRORS
=
"""
18:5: freelists
are not currently supported for subtypes
18:5: freelists
cannot be used on subtypes, only the base class can manage them
"""
"""
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