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
344e435f
Commit
344e435f
authored
Oct 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated test case
parent
234a6fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
tests/run/dictintindex.pyx
tests/run/dictintindex.pyx
+10
-4
No files found.
tests/run/dictintindex.pyx
View file @
344e435f
__doc__
=
u"""
>>> test()
>>> test
_index
()
1
>>> test_del()
Traceback (most recent call last):
KeyError: 0
"""
def
test
():
def
test
_index
():
cdef
int
key
=
0
d
=
{
0
:
1
}
return
d
[
key
]
def
test_del
():
cdef
int
key
=
0
d
=
{
0
:
1
}
print
d
[
key
]
del
d
[
key
]
print
d
[
key
]
return
d
[
key
]
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