Cython has moved to github.

cython-devel

view tests/run/r_argdefault.pyx @ 1622:4f0327bdebc9

test for temp allocation bug in call
author Robert Bradshaw <robertwb@math.washington.edu>
date Sat Jan 17 01:25:34 2009 -0800 (3 years ago)
parents 6309e21af543
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> swallow(name = "Brian")
3 This swallow is called Brian
4 >>> swallow(airspeed = 42)
5 This swallow is flying at 42 furlongs per fortnight
6 >>> swallow(coconuts = 3)
7 This swallow is carrying 3 coconuts
8 """
10 def swallow(name = None, airspeed = None, coconuts = None):
11 if name is not None:
12 print u"This swallow is called", name
13 if airspeed is not None:
14 print u"This swallow is flying at", airspeed, u"furlongs per fortnight"
15 if coconuts is not None:
16 print u"This swallow is carrying", coconuts, u"coconuts"