A- UIAcceleration xvalue is defined in Objective-C as a property and access to acceleration.xPython gives you a method named "x", not an attribute (ivar) named "x", as you might expect. You must say:
acceleration._.x
which uses the PyObjC magic accessor to get the attribute you need.
The reasons for this:
Python, . Objective-C, , , .
Objective-C 2.0, , . Objective-C :
NSLog(@"foo bar: %f", foo.bar);
foo.bar = 10.0;
(-bar -setBar:). PyObjC - Python , Objective-C, ( ), foo.bar; , , - .