Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (38 sloc) 0.93 kb
cdef class Spam:
property eggs:
def __get__(self):
"""
This is the docstring for Spam.eggs.__get__
>>> True
True
"""
return 42
def tomato():
"""
>>> tomato()
42
>>> lines = __test__.keys()
>>> len(lines)
3
>>> 'Spam.eggs.__get__ (line 5)' in lines or lines
True
>>> 'tomato (line 14)' in lines or lines
True
"""
cdef Spam spam
cdef object lettuce
spam = Spam()
lettuce = spam.eggs
return lettuce
cdef class Bacon(object):
cdef object number_of_slices
cdef public object is_a_vegetable
def breakfast():
"""
>>> breakfast()
"""
cdef Bacon myslices = Bacon()
myslices.is_a_vegetable = True
assert myslices.is_a_vegetable, myslices.is_a_vegetable
del myslices.is_a_vegetable
assert myslices.is_a_vegetable is None, myslices.is_a_vegetable
Jump to Line
Something went wrong with that request. Please try again.