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
Boxiang Sun
cython
Commits
af56048e
Commit
af56048e
authored
Nov 26, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.25.x'
parents
cc0f4962
160151b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+5
-1
Cython/Shadow.py
Cython/Shadow.py
+1
-1
tests/run/pyintop.pyx
tests/run/pyintop.pyx
+3
-3
No files found.
Cython/Compiler/ExprNodes.py
View file @
af56048e
...
@@ -6396,7 +6396,11 @@ class AttributeNode(ExprNode):
...
@@ -6396,7 +6396,11 @@ class AttributeNode(ExprNode):
return
self
.
as_name_node
(
env
,
ubcm_entry
,
target
=
False
)
return
self
.
as_name_node
(
env
,
ubcm_entry
,
target
=
False
)
elif
type
.
is_enum
:
elif
type
.
is_enum
:
if
self
.
attribute
in
type
.
values
:
if
self
.
attribute
in
type
.
values
:
return
self
.
as_name_node
(
env
,
env
.
lookup
(
self
.
attribute
),
target
=
False
)
for
entry
in
type
.
entry
.
enum_values
:
if
entry
.
name
==
self
.
attribute
:
return
self
.
as_name_node
(
env
,
entry
,
target
=
False
)
else
:
error
(
self
.
pos
,
"%s not a known value of %s"
%
(
self
.
attribute
,
type
))
else
:
else
:
error
(
self
.
pos
,
"%s not a known value of %s"
%
(
self
.
attribute
,
type
))
error
(
self
.
pos
,
"%s not a known value of %s"
%
(
self
.
attribute
,
type
))
return
None
return
None
...
...
Cython/Shadow.py
View file @
af56048e
# cython.* namespace for pure mode.
# cython.* namespace for pure mode.
from
__future__
import
absolute_import
from
__future__
import
absolute_import
__version__
=
"0.25.
1
"
__version__
=
"0.25.
2b0
"
try
:
try
:
from
__builtin__
import
basestring
from
__builtin__
import
basestring
...
...
tests/run/pyintop.pyx
View file @
af56048e
...
@@ -159,16 +159,16 @@ def lshift_int(obj):
...
@@ -159,16 +159,16 @@ def lshift_int(obj):
>>> bigints(lshift_int(-32))
>>> bigints(lshift_int(-32))
(-256, -68719476736, -295147905179352825856, -340282366920938463463374607431768211456)
(-256, -68719476736, -295147905179352825856, -340282366920938463463374607431768211456)
>>>
(2**28) << 3
>>>
bigint((2**28) << 3)
2147483648
2147483648
>>> bigints(lshift_int(2**28))
>>> bigints(lshift_int(2**28))
(2147483648, 576460752303423488, 2475880078570760549798248448, 2854495385411919762116571938898990272765493248)
(2147483648, 576460752303423488, 2475880078570760549798248448, 2854495385411919762116571938898990272765493248)
>>>
(-2**28) << 3
>>>
bigint((-2**28) << 3)
-2147483648
-2147483648
>>> bigints(lshift_int(-2**28))
>>> bigints(lshift_int(-2**28))
(-2147483648, -576460752303423488, -2475880078570760549798248448, -2854495385411919762116571938898990272765493248)
(-2147483648, -576460752303423488, -2475880078570760549798248448, -2854495385411919762116571938898990272765493248)
>>>
(2**30) << 3
>>>
bigint((2**30) << 3)
8589934592
8589934592
>>> bigints(lshift_int(2**30))
>>> bigints(lshift_int(2**30))
(8589934592, 2305843009213693952, 9903520314283042199192993792, 11417981541647679048466287755595961091061972992)
(8589934592, 2305843009213693952, 9903520314283042199192993792, 11417981541647679048466287755595961091061972992)
...
...
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