Updated the documentation to reflect class attribute assignment policies.
Added tests to demonstrate class attribute rebinding.
1#!/usr/bin/env python 2 3classC: 4x=1 5 6classD: 7x=2 8 9defgetattr(obj,name): 10returnobj.x 11 12c=C() 13d=D() 14result_1=getattr(c,"x")# "x" should be a str, since no dynamic access is done 15result_2=getattr(d,"x") 16 17# vim: tabstop=4 expandtab shiftwidth=4