The following is a script that is supposed to access UV info but it fails right away in both Object and Edit modes. I fist tried using Bl-2.69.8, then 2.69 then 2.68 and it happens the same every time. I've also tried adding bpy. to the beginning of context but the result is the same.
Can anyone clear this up?