I have this code:
>>> class G: ... def __init__(self): ... self.x = 20 ... >>> gg = G() >>> gg.x 20 >>> gg.y = 2000
It's written in C
http://svn.python.org/view/python/trunk/Modules/datetimemodule.c?view=markup
It doesn't seem to implement setattr.