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
ec3ee680
Commit
ec3ee680
authored
Dec 03, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable Python methods on C types through coercion to Python objects
parent
7245498b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+8
-8
No files found.
Cython/Compiler/ExprNodes.py
View file @
ec3ee680
...
@@ -3010,14 +3010,14 @@ class AttributeNode(ExprNode):
...
@@ -3010,14 +3010,14 @@ class AttributeNode(ExprNode):
if
obj_type
is
None
:
if
obj_type
is
None
:
obj_type
=
self
.
obj
.
type
obj_type
=
self
.
obj
.
type
self
.
member
=
self
.
attribute
self
.
member
=
self
.
attribute
if
obj_type
.
is_pyobject
:
self
.
type
=
py_object_type
self
.
type
=
py_object_type
self
.
is_py_attr
=
1
self
.
is_py_attr
=
1
else
:
if
not
obj_type
.
is_pyobject
:
if
not
obj_type
.
is_error
:
self
.
obj
=
self
.
obj
.
coerce_to_pyobject
(
env
)
error
(
self
.
pos
,
## if not obj_type.is_error:
"Object of type '%s' has no attribute '%s'"
%
## error(self.pos,
(
obj_type
,
self
.
attribute
))
## "Object of type '%s' has no attribute '%s'" %
## (obj_type, self.attribute))
def
nogil_check
(
self
,
env
):
def
nogil_check
(
self
,
env
):
if
self
.
is_py_attr
:
if
self
.
is_py_attr
:
...
...
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