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
Kirill Smelkov
cython
Commits
0a422d40
Commit
0a422d40
authored
Aug 21, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 test fixes
parent
7db195ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tests/run/extended_unpacking_T235.pyx
tests/run/extended_unpacking_T235.pyx
+3
-3
tests/run/hash_T326.pyx
tests/run/hash_T326.pyx
+1
-1
No files found.
tests/run/extended_unpacking_T235.pyx
View file @
0a422d40
__doc__
=
u"""
>>> class FakeSeq(object):
... def __init__(self, length):
... self._values =
range(1,length+1
)
... self._values =
list(range(1,length+1)
)
... def __getitem__(self, i):
... return self._values[i]
...
...
@@ -165,10 +165,10 @@ ValueError: need more than 1 value to unpack
>>> unpack_middle_tuple((1,2,3))
(1, [2], 3)
>>> a,b,c = unpack_middle(
range(100
))
>>> a,b,c = unpack_middle(
list(range(100)
))
>>> a, len(b), c
(0, 98, 99)
>>> a,b,c = unpack_middle_list(
range(100
))
>>> a,b,c = unpack_middle_list(
list(range(100)
))
>>> a, len(b), c
(0, 98, 99)
>>> a,b,c = unpack_middle_tuple(tuple(range(100)))
...
...
tests/run/hash_T326.pyx
View file @
0a422d40
...
...
@@ -21,7 +21,7 @@ cdef class A:
self
.
a
=
a
def
__hash__
(
self
):
if
self
.
a
==
100
:
raise
TypeError
,
"That's kind of a round number..."
raise
TypeError
,
u
"That's kind of a round number..."
else
:
return
self
.
a
...
...
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