|
Actually, 'print' is just fine as an object attribute, and doesn't need a getter method; getattr(ob,'print') works just fine, as does setattr(ob,'print'). It's still only One Way, it's just that you have to syntactically escape certain attribute names as getattr(ob,'name') instead of as ob.name. |
|
So you have to use two different ways of doing the same thing, but it's still only one way - right ? |
Commenting by HaloScan |