Cython has moved to github.

cython

view tests/compile/classmethargdefault.pyx @ 724:4e4808271bdf

Bump version number.
author Robert Bradshaw <robertwb@math.washington.edu>
date Thu Jun 12 16:53:51 2008 -0700 (3 years ago)
parents ff6249a604c2
children
line source
1 __doc__ = u"""
2 >>> s = Swallow()
3 >>> s.spam(1)
4 1 42 'grail' True
5 >>> s.spam(1, 2)
6 1 2 'grail' True
7 >>> s.spam(1, z = 2)
8 1 42 'grail' 2
9 >>> s.spam(1, y = 2)
10 1 42 2 True
11 >>> s.spam(1, x = 2, y = 'test')
12 1 2 'test' True
13 """
15 swallow = True
17 class Swallow:
19 def spam(w, int x = 42, y = "grail", z = swallow):
20 print w, x, y, z