Commit d979ac14 authored by Stefan Behnel's avatar Stefan Behnel

merge

parents 96a95e09 0e14b4b5
__doc__ = u''' __doc__ = u'''
>>> no_cdef() >>> no_cdef()
>>> with_cdef() >>> with_cdef()
>>> test_list(range(11), -2, None) >>> test_list(range(11), -2, None)
[0, 1, 2, 3, 4, 5, 6, 7, 8, None, 10] [0, 1, 2, 3, 4, 5, 6, 7, 8, None, 10]
>>> test_list(range(11), "invalid index", None) >>> test_list(range(11), "invalid index", None)
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: list indices must be integers TypeError: list indices must be integers, not str
''' '''
def no_cdef(): def no_cdef():
lst = range(11) lst = range(11)
ob = 10L ob = 10L
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment