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
50d3c1df
Commit
50d3c1df
authored
Mar 20, 2019
by
gsamain
Committed by
Xavier Thompson
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error message for cypclass new with arguments
parent
1311005a
Changes
1
Hide 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 @
50d3c1df
...
@@ -5703,6 +5703,9 @@ class SimpleCallNode(CallNode):
...
@@ -5703,6 +5703,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