python script for accessing bones and armatures

Hello Everyone,

Can someone give me a quick and simple example file of how to use python to access armatures and bones (I’m using blender 2.47 with python 2.5)? I added an armature in object mode and then selected it and entered edit mode to add the bones. For some reason, my old code no longer works with the newer blender/python version.

Thanks in advance!