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
Gwenaël Samain
cython
Commits
86797230
Commit
86797230
authored
Mar 20, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error message for cypclass new with arguments
parent
6bb2b2ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+3
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
86797230
...
@@ -5626,6 +5626,9 @@ class SimpleCallNode(CallNode):
...
@@ -5626,6 +5626,9 @@ class SimpleCallNode(CallNode):
self
.
function
=
self
.
function
.
analyse_types
(
env
)
self
.
function
=
self
.
function
.
analyse_types
(
env
)
function
=
self
.
function
function
=
self
.
function
if
isinstance
(
function
,
NewExprNode
)
and
len
(
self
.
args
)
and
function
.
class_type
.
is_cyp_class
:
error
(
self
.
pos
,
"Cypclasses must be constructed without arguments when using new"
)
if
function
.
is_attribute
and
function
.
entry
and
function
.
entry
.
is_cmethod
:
if
function
.
is_attribute
and
function
.
entry
and
function
.
entry
.
is_cmethod
:
# Take ownership of the object from which the attribute
# Take ownership of the object from which the attribute
# was obtained, because we need to pass it as 'self'.
# was obtained, because we need to pass it as 'self'.
...
...
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