tests/class_init_defaults.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/class_init_defaults.py Sat May 09 02:54:18 2009 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class C: 1.7 + def __init__(self, x=1, y=2, z=3): 1.8 + self.x = x 1.9 + self.y = y 1.10 + self.z = z 1.11 + 1.12 +c = C() 1.13 + 1.14 +# vim: tabstop=4 expandtab shiftwidth=4